Distribute system intelligence

From CSSEMediaWiki
Revision as of 07:31, 24 November 2010 by Ebybymic (Talk | contribs)
Jump to: navigation, search

Distribute system intelligence horizontally as uniformly as possible, i.e. the top level classes in a design should share the work uniformly. --Riel's Heuristic 3.1, Arthur Riel 1996

Description

From chapter 3.3 of Arthur Riel 1996, Riel describes the "god class problem": <blockquote> The behavioral form of the god class problem is caused by a common error among action-oriented developers in the process of moving to the object-oriented paradigm. These developers attempt to capture the central control mechanism so prevalent in the action-oriented paradigm within their object-oriented design. The result is the creation of a god object that performs most of the work, leaving minor details to a collection of trivial classes. There are a number of heuristics that work together cooperatively toward the avoidance of these classes. </blockquote>

This heuristic follows from that.

Personal tools