1988年,勃兰特·梅耶(Bertrand Meyer)在他的著作《面向对象软件构造(Object Oriented Software Construction)》中提出了开闭原则,它的原文是这样:“Software entities should be open for extension,but ...
分类:
其他好文 时间:
2016-04-15 13:49:08
阅读次数:
241
Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL ...
分类:
其他好文 时间:
2016-04-14 15:49:00
阅读次数:
93
在书上看到的补充阅读,为了以后方便以后复习干脆翻译了下来。翻译自Node数据流手册1、介绍本文介绍了使用 node.js streams 开发程序的基本方法。"We should have some ways of connecting programs like garden hose--screw in
another segment when it becomes necessary to m...
分类:
Web程序 时间:
2016-04-14 14:23:51
阅读次数:
217
Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex ...
分类:
其他好文 时间:
2016-04-14 14:13:02
阅读次数:
104
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:
其他好文 时间:
2016-04-13 12:41:49
阅读次数:
164
Remember that most things are really simple, if you catch yourself overcomplicating something that should be simple then you are most likely doing it ...
分类:
其他好文 时间:
2016-04-12 22:09:32
阅读次数:
179
低层次架构:类之间的关系
组合 ,继承,依赖,聚集。高层次架构:设计模式
复杂的设计模式是有简单的设计模式演化而来,解决了更复杂场景下简单设计模式解决不了的问题。设计原则:(通过设计模式实现设计原则)
单一职责原则(SRP),从职责来理解单一的概念是模糊的,因为一件事情的职责总能无限细分,所以需要找到职责的单一标准是什么?从SPR的原话来理解:There should never be mor...
分类:
其他好文 时间:
2016-04-12 17:38:24
阅读次数:
155
Discussion and Conclusion After viewing these maps, what should immediately appear is the level of racial segregation into high and low levels of educ ...
分类:
其他好文 时间:
2016-04-11 14:13:10
阅读次数:
1318
在安装Ecshop的时候,遇到好多好多问题: 1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\X\www\ecshop\install\includ ...
分类:
其他好文 时间:
2016-04-11 11:41:47
阅读次数:
189
How would you print just the 10th line of a file? For example, assume that file.txt has the following content: Your script should output the tenth lin ...
分类:
其他好文 时间:
2016-04-11 07:22:17
阅读次数:
148