Keep related data and behavior in one place
From CSSEMediaWiki
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
− | Riel's Heuristic | + | :''Keep related data and behavior in one place.'' --Riel's Heuristic 2.9, [[Arthur Riel 1996]] |
If two or more areas are actually of the same key abstraction they should be captured in the same class. As soon as there are any "get" operations that might imply that this heuristic is being violated. | If two or more areas are actually of the same key abstraction they should be captured in the same class. As soon as there are any "get" operations that might imply that this heuristic is being violated. | ||
Line 5: | Line 5: | ||
==See also== | ==See also== | ||
*[[Tell, don't ask]] | *[[Tell, don't ask]] | ||
+ | |||
+ | [[Category:Riel's heuristics]] |
Revision as of 23:43, 20 July 2009
- Keep related data and behavior in one place. --Riel's Heuristic 2.9, Arthur Riel 1996
If two or more areas are actually of the same key abstraction they should be captured in the same class. As soon as there are any "get" operations that might imply that this heuristic is being violated.