Single choice principle

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
 
* [[Code smells]]
 
* [[Code smells]]
 
* [[Refactoring]]
 
* [[Refactoring]]
 +
* [[Strategy]]

Revision as of 22:51, 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