Minimize number of methods

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m
(See also)
Line 6: Line 6:
 
* [[Riel's heuristics]]
 
* [[Riel's heuristics]]
 
* [[Fat interfaces]]
 
* [[Fat interfaces]]
 +
* [[Avoid interface bloat]]
 +
* [[Avoid interface pollution]]
  
 
[[Category:Riel's heuristics]]
 
[[Category:Riel's heuristics]]

Revision as of 02:28, 22 July 2009

Minimize the number of messages in the protocol of a class. --Riel's Heuristic 2.3, Arthur Riel 1996

This heuristic ensures that you can always find the method that you are looking for, and enhances reusability. This is tied to the idea of You ain't gonna need it - don't implement methods until you need them.

See also

Personal tools