读完 GOF 的Design Patterns: Elements of Reusable Object-Oriented Software和图文并茂的Head First Design Patterns,一时并不是那么快消化和理解,所以试着用自己的语言总结一下。
《Design Patterns》在 Introduction 章中”如何选一种模式设计”一节中给出了一张表格,5 个创建模式(Abstract Factory; Builder; Factory Method; Prototype; Singleton),7 个结构模式(Adapter; Bridge; Compose; Decorator; Facade; Flyweight; Proxy)和 11 个行为模式(Chain of Responsibility; Command; Interpreter; Iterator; Mediator; Memento; Observer; State; Strategy; Template Method; Visitor)。