Hall of fame
From CSSEMediaWiki
(Difference between revisions)
BenMcDonald (Talk | contribs) |
BenMcDonald (Talk | contribs) |
||
Line 6: | Line 6: | ||
* [[Goto considered harmful]] | * [[Goto considered harmful]] | ||
− | |||
* [[Don't repeat yourself]] | * [[Don't repeat yourself]] | ||
Line 18: | Line 17: | ||
* [[Liskov substitution principle]] | * [[Liskov substitution principle]] | ||
* [[Behavioral completeness]] | * [[Behavioral completeness]] | ||
− | + | * [[Information hiding]] | |
== Helpful ideas == | == Helpful ideas == |
Revision as of 15:49, 25 August 2009
This page is an attempt to make sense of the overwhelming morass of OOD advice by classifying it by how valuable we consider it to be.
Contents |
Inviolable laws
We the people hold these things to be absolute and inviolable laws of OO design. Anyone breaking these maxims should be publically mocked and made to program in COBOL forevermore.
Most excellent ideas
Everybody should know about these & try to follow them. Any exceptions need convincing justification.
- Design by contract
- Command query separation
- Liskov substitution principle
- Behavioral completeness
- Information hiding
Helpful ideas
General knowledge that identifies forces that should normally be taken into consideratuion.
- Design patterns
- Keep it simple (beginners probably often violate this one, therefore it should be one of the most important ideas)
Controversial ideas
Debatable propositions. Might help in some cases, but not everyone agrees.
Wack ideas
These are wrong. Following this advice will make your designs worse.