摘要:
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: 阅读全文
posted @ 2007-04-13 21:29 落花人独立 阅读(537) 评论(4) 推荐(0) 编辑