Summary of Design Heuristics -摘录至Code Complete, Second Edition
2009-02-16 16:53
260 查看
Summary of Design Heuristics More alarming, the same programmer is quite capable of doing the same task himself in two or three ways, sometimes unconsciously, but quite often simply for a change, or to provide elegant variation.
—A. R. Brown and W. A. Sampson
Here's a summary of major design heuristics:
Find Real-World Objects
Form Consistent Abstractions
Encapsulate Implementation Details
Inherit When Possible
Hide Secrets (Information Hiding)
Identify Areas Likely to Change
Keep Coupling Loose
Look for Common Design Patterns
The following heuristics are sometimes useful too:
Aim for Strong Cohesion
Build Hierarchies
Formalize Class Contracts
Assign Responsibilities
Design for Test
Avoid Failure
Choose Binding Time Consciously
Make Central Points of Control
Consider Using Brute Force
Draw a Diagram
Keep Your Design Modular
—A. R. Brown and W. A. Sampson
Here's a summary of major design heuristics:
Find Real-World Objects
Form Consistent Abstractions
Encapsulate Implementation Details
Inherit When Possible
Hide Secrets (Information Hiding)
Identify Areas Likely to Change
Keep Coupling Loose
Look for Common Design Patterns
The following heuristics are sometimes useful too:
Aim for Strong Cohesion
Build Hierarchies
Formalize Class Contracts
Assign Responsibilities
Design for Test
Avoid Failure
Choose Binding Time Consciously
Make Central Points of Control
Consider Using Brute Force
Draw a Diagram
Keep Your Design Modular
相关文章推荐
- 20162314 《Program Design & Data Structures》Learning Summary Of The Second Week
- Code Complete, Second Edition (Paperback)
- The Compiler Design Handbook: Optimizations and Machine Code Generation, Second Edition
- Chapter 13. Playing God: Basic Physics Modeling (Tricks.of.the.Windows.Game.Programming.Gurus,.Second.Edition)
- Refecing Improving the Design of Existing Code reading comments(三)
- Schaum's Outline of Data Structures with Java, Second Edition
- Information Visualization, Second Edition: Perception for Design
- Examples of GoF Design Patterns--摘录
- JavaScript 2.0: The Complete Reference, Second Edition
- the thinker of code complete
- 笔记-重构-改善既有代码的设计(Refactoring - Improving the Design of Existing Code)
- {Refractoring - Improving the design of existing code} - 1999
- 20162314 《Program Design & Data Structures》Learning Summary Of The Ninth Week
- Examples of GoF Design Patterns--摘录
- Principles of Network and System Administration , Second Edition
- Google Summer of Code 2017 Summary
- UNIX: The Complete Reference, Second Edition
- The Microsoft Visual J# 2.0 Second Edition installer returned error code '4113'
- the thinker of code complete --
- 20162314 《Program Design & Data Structures》Learning Summary Of The First Week