【strategy】 defines a family of algorithms, encapsulate each one and make them interchangable. strategy lets the algorithm vary independently from clients that use it.
【observer】 defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.
【decorator】 attach additional responsibilities to an object dynamically. decorator provide a flexible alternative to subclssing for extending functionality.
【abstract factory】 provide an interface for creating famiilies of related or dependent objects without specifing their concrete classes.
【factory method】 defines in interface for creating an object, but let subclss to decide which class to instantiate. factory method lets a class defer instantiation to the subclasses.
【singleton】 ensure a class only has one instance and provide a gloval point of access to it.
【command】 encapsulates a request as a object, thereby letting you parametrize clients with different request, quese or log request, and support undoable operations.
【adaptor】 converts the interface of a class into another interface that clients expect. lets classes work together that couldn't otherwise because of incompatible interface.
【facade】 provides a unified interface to a set of interfaces in a subsystem. facade defines a higher-level interface that makes the subsystem easier to use.
【template】 define the skeleton of an algorithm in an operation, deferring some steps to subclasses. template method lets subclasses redefine certain steps of an algorithm without changing the algorithms' structure
【iterator】 provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
【composite】 compose objects into tree structure to represent part-whole hierachies. composite lets client treat individual object and compositions of objects equally.
【state】 allow an object to alter its behavior when its internal state changes. the object will appear to change its class.
【proxy】 provides a surrogate or placeholder for another object to control access to it.
【compound】 i.e. MVC
Summary
《深入浅出设计模式(影印版)》热门书评
-
Head First Design Patterns让设计模式走向大众
24有用 1无用 红眼睛阿义 2006-02-08
本影印版刚拿到手,感觉沉甸甸的,第一印象就不错,网上评价也很好。恰巧快到春节,于是在书架一大堆的书籍中,我只选择这本比较厚重的,塞到我的行李包中。翻开一看,真如Erich Camma所说,简直欲罢不能.本书是Oreilly的Head First系列中的一本,本系列书籍的特点是采用大量的插图、图例来进...
-
入门看这本书的话很不错
16有用 3无用 Luffy Lee 2009-11-14
写得很有趣,图文并茂,比起四人帮的那本,好懂了不知道多少倍。计算机世界的head first系列让我想起了阿呆系列,话说新的一集the big bang theory里面lennerd学习橄榄球的时候也有一本阿呆啊,哈哈,跑题了不过只看书学明白设计模式是不可能的,这些只是前人的总结,我们唯有实践实践...
-
值得每一位程序员阅读的书
10有用 0无用 曹操 2009-04-02
读这本书不仅仅是学习知识,而是在学习一种思考的方法,学习一种认知的技巧,学习一种成长的阶梯。总之,用你闲暇的时间来读这本书,并不亚于你专注的工作或学习。...
-
深入浅出
9有用 0无用 Jarod 2006-09-13
这本书没有辜负这个名字。作者说他们把原本属于设计模式的来源还给设计模式的学习和应用过程。他们确实这样做到了。让读者能够从生活中的例子随着论述的展开,逐步深入设计模式的核心,这个确实是在目前的设计模式教程里面比较少见的,这个也是这本书能够不负其初衷的重要原因。...
-
拿了Jolt大奖的东西
7有用 1无用 yasker 2006-12-25
看书之前本来仰慕已久,不过看完了稍显失望。怎么说呢,这种非常轻松的东西倒是很好,就是有点过于分散了点。另外有的模式对我来说简直是惊世骇俗,但是有的实在是非常符合一般规律,能够直接根据OO的原则想出来的。还有一点不太满意就是习题有的有点弱智,有的又跑得太远……这方面规划似乎不是太好。每章的总结倒是非常...
书名: 深入浅出设计模式(影印版)
作者:
出版社: 东南大学出版社
原作名: Head First Design Patterns
出版年: 2005-11
页数: 638
定价: 98.00元
装帧: 平装
丛书: O'Reilly深入浅出系列
ISBN: 9787564101657