一直以来,yqj2065都认为,学习里氏替换原则(Liskov SubstitutionPrinciple、LSP),如同学习下围棋一样,易学难精。
因为易学,所以在《编程导论(Java)》中安排在2.1.1节。简单地说。子类必须能够替代父类,这在面向对象语言中如同常识。所以紧接其后,在[2.1.2 啊,我看到了多态]中介绍向上造型、多态、改写(override);
所谓难精,我们将继...
分类:
其他好文 时间:
2014-09-10 17:44:30
阅读次数:
354
概述 领域驱动设计也就是3D(Domain-Driven Design)已经有了10年的历史,我相信很多人或多或都都听说过这个名词,但是有多少人真正懂得如何去运用它,或者把它运用好呢?于是有人说,DDD和TDD这些玩意是一些形而上的东西,只是一茶余饭后的谈资,又或是放到简历上提升逼格而已。前面这句....
分类:
其他好文 时间:
2014-09-10 09:30:30
阅读次数:
257
DescriptionEdward is a rich man. He owns a large factory for health drink production. As a matter of course, there is a large warehouse in the factory...
分类:
其他好文 时间:
2014-09-10 00:24:39
阅读次数:
372
The Mediator Design PatternThe Mediator is abehavioral design patternin which objects, instead of communicating directly with each other, communicate ...
分类:
编程语言 时间:
2014-09-10 00:21:09
阅读次数:
257
1 select * from student 2 select * from score 3 --select * from grade 4 select * from course 5 select * from teacher 6 7 --1、 查询Student表中的所有记...
分类:
数据库 时间:
2014-09-09 23:01:49
阅读次数:
417
第一章:Internetworking CCNA中文读书笔记 Cisco Certified Network Associate 640-801 ICND Course Notes Chapter 1 Internetworking Internetworking Basic 把1个大的网络分成几个...
分类:
其他好文 时间:
2014-09-09 19:58:09
阅读次数:
226
ZOJ Problem Set - 3811
Untrusted Patrol
Time Limit: 3 Seconds
Memory Limit: 65536 KB
Edward is a rich man. He owns a large factory for health drink production. As a matter of course, ...
分类:
其他好文 时间:
2014-09-09 13:27:39
阅读次数:
232
$ 匹配行结束符。例如正则表达式weasel$ 能够匹配字符串"He's a weasel"的末尾,但是不能匹配字符串"They are a bunch of weasels."。 ^ 匹配一行的开始。例如正则表达式^When in能够匹配字符串"When in the course of h...
分类:
其他好文 时间:
2014-09-09 12:18:48
阅读次数:
333
[Architecture Design] 3-Layer基础架构三层式体系结构只要是软件从业人员,不管是不是本科系出身的,相信对于三层式体系结构一定都不陌生。在三层式体系结构中,将软件开发所产出的程序代码,依照不同用途归类为:系统表示层、领域逻辑层、数据存取层。其中:系统表示层 (Presenta...
分类:
其他好文 时间:
2014-09-09 12:05:28
阅读次数:
138
链接:http://ued.taobao.org/blog/2009/12/the-practice-guidelines-of-interaction-design-clear-operational-entrance-of-effectivity/“操作入口明确”,就是指产品的任何一个功能都要有...
分类:
其他好文 时间:
2014-09-09 11:55:48
阅读次数:
216