posts - 37,comments - 7,trackbacks - 0
1. Identify the aspects of your application thar vary and separate them from what stays the same.
2. Program to an interface, not an implementation.
3. Favor composition over inheritance.
4. Strive for loosely coupled designs between objects that interface.
5. Classes should be open for extension, but closed for modification.
6. Depend upon abstractions. Do not depend upon concrete classes.
7. Principle of  Least Knowledge - talk only to your immediate friends.
8. The Hollywood Principle - Don't call us, we'll call you.
9. A class should have only one reason to change.
posted on 2005-08-11 09:29 Dave 阅读(110) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: