Split large classes
From CSSEMediaWiki
Revision as of 01:31, 18 August 2009 by Stephen Fitchett (Talk | contribs)
A large class generally represents a poor design. A class should represent an abstraction, and the larger the class the more complicated the abstraction. It is likely that any class containing 50 methods is representing several abstractions and should be split up into the separate abstractions. Johnson and Foote 1988 states that "Large classes should be viewed with suspicion and held to be guilty of poor design until proven innocent".