现在的位置: 首页 > 综合 > 正文

design pattern tips

2014年05月05日 ⁄ 综合 ⁄ 共 749字 ⁄ 字号 评论关闭

design pattern
In software engineering, a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design.
http://en.wikipedia.org/wiki/Software_design_pattern

设计模式就三个准则:1)中意于组合而不是继承,2)依赖于接口而不是实现,3)高内聚,低耦合。你看,这完全就是Unix的设计准则。
http://coolshell.cn/articles/8745.html

Design Patterns are best practices how to solve common know problems.
http://www.vogella.com/articles/DesignPatterns/article.html

面向对象编程注重的是:1)数据和其行为的打包封装,2)程序的接口和实现的解耦。
OOP的本质就是——对数据和与之关联的行为进行编程。即便就算是这样也不完全对,因为:
Sometimes data is just data and functions are just functions.
http://coolshell.cn/articles/8745.html

一些软件设计的原则
http://coolshell.cn/articles/4535.html

JDK里的设计模式
http://stackoverflow.com/questions/1673841/examples-of-gof-design-patterns
http://coolshell.cn/articles/3320.html

抱歉!评论已关闭.