面向对象程序设计 OOP 的经典书籍,图文并茂,结构清晰,内容全面而且组织得通俗易懂,伴以简单的编码实例,是学习 Design Patterns 的优秀入门及中等进阶书籍。
Table of Contents (summary)
Intro xxv
1 Welcome to Design Patterns:
an introduction 1
2 Keeping your Objects in the know:
the Observer Pattern 37
3 Decorating Objects:
the Decorator Pattern 79
4 Baking with OO goodness:
the Factory Pattern 109
5 One of a Kind Objects:
the Singleton Pattern 169
6 Encapsulating Invocation:
the Command Pattern 191
7 Being Adaptive:
the Adapter and Facade Patterns 235
8 Encapsulating Algorithms:
the Template Method Pattern 275
9 Well-managed Collections:
the Iterator and Composite Patterns 315
10 The State of Things:
the State Pattern 385
11 Controlling Object Access:
the Proxy Pattern 429
12 Patterns of Patterns:
Compound Patterns 499
13 Patterns in the Real World:
Better Living with Patterns 577
14 Appendix:
Leftover Patterns 611