随笔分类 -  Design Pattern

摘要:Ref: http://www.martinfowler.com/bliki/AnemicDomainModel.html 25 November 2003Reactions This is one of those anti-patterns that's been around for quite a long time, yet seems to be having a particular... 阅读全文
posted @ 2008-04-24 08:17 Vincent Yang 阅读(442) 评论(0) 推荐(0)
摘要:Ref http://industriallogic.com/papers/learning.html#STUDY Design Patterns Navigation l Factory MethodSession 1 Begin with Factory Method. This pattern is used by a number of patterns in the book a... 阅读全文
posted @ 2008-02-23 16:26 Vincent Yang 阅读(453) 评论(0) 推荐(0)
摘要:1.没学前是一点不懂,根本想不到用设计模式,设计的代码很糟糕; 2.学了几个模式后,很开心,于是到处想着要用自己学过的模式,于是时常造成误用模式而不自知; 3.学完全部模式时,感觉诸多模式极其相似,无法分清模式之间的差异,有困惑,但深知误用之害,应用之时有所犹豫; 4.灵活应用模式,甚至不应用具体的某种模式也能设计出非常优秀的代码,以达到无剑胜有剑的境界。 Ref:转载 阅读全文
posted @ 2008-01-17 12:28 Vincent Yang 阅读(334) 评论(0) 推荐(0)
摘要:Strategy pattern From Wikipedia, the free encyclopedia Jump to: navigation, search In computer programming, the strategy pattern is a particular software design pattern, whereby algorithms can be sel... 阅读全文
posted @ 2008-01-06 11:37 Vincent Yang 阅读(608) 评论(0) 推荐(0)