Single choice principle

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
== See also ==
 
== See also ==
 
* [[Design maxims]]
 
* [[Design maxims]]
 +
* [[Once and only once]]
 +
* [[Duplicate code smell]]
 +
* [[Don't repeat yourself]]
 +
* [[Code smells]]
 +
* [[Refactoring]]

Revision as of 22:37, 6 October 2008

This states that whenever a program needs to support a set of known alternatives, this set should only exist in one module. Repeating the alternatives in several modules is unnecessary and makes it hard to maintain when an alternative is added or removed.

See also

Personal tools