Object-Oriented Design Heuristics 笔记(1)
来源:互联网 发布:windows系统隐藏文件夹 编辑:程序博客网 时间:2024/06/05 20:22
Summary of Heuristics
Heuristic 2.1 All data should be hidden within its class.
Heuristic 2.2 Users of a class must be dependent on its public interface, but a class should not be dependent on its users.
Heuristic 2.3 Minimize the number of messages in the protocol of a class.
Heuristic 2.4 Implement a minimal public interface that all classes understand [e.g., operations such as copy (deep versus shallow), equality testing, pretty printing, parsing from an ASCII description, etc.].
Heuristic 2.5 Do not put implementation details such as common-code private functions into the public interface of a class.
Heuristic 2.6 Do not clutter the public interface of a class with things that users of that class are not able to use or are not interested in using.
Heuristic 2.7 Classes should only exhibit nil or export coupling with other classes, that is, a class should only use operations in the public interface of another class or have nothing to do with that class.
Heuristic 2.8 A class should capture one and only one key abstraction.
Heuristic 2.9 Keep related data and behavior in one place.
Heuristic 2.10 Spin off nonrelated information into another class (i.e., noncommunicating behavior).
Heuristic 2.11 Be sure the abstractions that you model are classes and not simply the roles objects play.
既然没有什么好说的,就不要说了,还不如静下心来搞些设计,在实践中体会OOD的精髓...... Practice make perfect!- Object-Oriented Design Heuristics 笔记(1)
- Object-Oriented Design Heuristics (zz)
- Object-Oriented Design Heuristics(OOD启思录)值得一看!
- Object-Oriented Design Knowledge: Principles, Heuristics And Best Practices
- Object-Oriented Game Design
- Object Oriented Design Tips
- Object-Oriented Game Design
- Object Oriented Design Parttern
- GRASP (object-oriented design)
- GRASP (object-oriented design)
- Object Oriented Design Pricinple
- SOLID (object-oriented design)
- ★Object Oriented Design Tips
- Principles of Object-Oriented Design
- Object-Oriented Design in Java
- Principles Of Object Oriented Design
- [转]Object Oriented Design Principles
- Object-Oriented Design in Go
- Linux内核的时钟中断机制(2)
- Linux内核的时钟中断机制(3)
- Linux内核的时钟中断机制(4)
- Linux内核的时钟中断机制(5)
- Linux内核的时钟中断机制(6)
- Object-Oriented Design Heuristics 笔记(1)
- Linux内核的时钟中断机制(7)
- Linux内核的时钟中断机制(8)
- 分析内核初始化时根内存盘的加载过程
- 利用GDI+的双缓冲技术来提高绘图效率(转)
- Microsoft GDI+概述
- 面向服务的编程(Service Oriented Programming ,SOP)
- 【灌水】努力学习早日进入安焦秘密板块
- (C#)DataGrid实现自定义分页,鼠标移至变色,删除确认、可编辑,可删除