Head First Design Patterns(读书笔记)
2007-04-13 21:29
387 查看
Design Principles:
Identify the aspets of your application that vary and seperate them from what stays the same.
Take what varies and "Ecapsulate" it so it won't affect the rest of your code.
Program to an interface, not an implementation.
Favor composition over inheritance.
The picture followed is The Strategy Pattern:
Identify the aspets of your application that vary and seperate them from what stays the same.
Take what varies and "Ecapsulate" it so it won't affect the rest of your code.
Program to an interface, not an implementation.
Favor composition over inheritance.
The picture followed is The Strategy Pattern:
相关文章推荐
- 《Head First Design Patterns》读书笔记之模板模式
- 《Head First design patterns》读书笔记
- 《Head First Design Patterns》读书笔记之策略模式
- 《Head First Design Patterns》读书笔记之命令模式
- 《Head First Design Patterns》读书笔记之观察者模式
- 《Head First Design Patterns》读书笔记之单例模式
- 《Head First Design Patterns》读书笔记之状态模式
- Head first design patterns 读书笔记 – Strategy(策略模式)
- 《Head First Design Patterns》读书笔记之适配器模式
- 《Head First Design Patterns》笔记一:策略模式(Strategy Pattern)
- 中介者模式——Head First Design Patterns
- 访问者模式——Head First Design Patterns
- 打破最后的依赖-Head First Design Patterns对工厂的解释
- Head First Design Pattern读书笔记二 Observer Pattern
- Head First Design patterns笔记-Observer Patterns (从TFS的Project alerts功能看观察者模式)
- Head First Design Patterns Study.
- Head.First.Object-Oriented.Design.and.Analysis《深入浅出面向对象的分析与设计》读书笔记(四)
- Head.First.Object-Oriented.Design.and.Analysis《深入浅出面向对象的分析与设计》读书笔记(六)
- Head First Design Patterns
- 读书笔记 Head First Design Pattern 第4章