Minimize number of methods

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(See also)
m
Line 1: Line 1:
Riel's Heuristic #2.3
+
:''Minimize the number of messages in the protocol of a class.'' --Riel's Heuristic 2.3, [[Arthur Riel 1996]]
  
 
Minimize the number of methods in the public interface of a class. This 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.
 
Minimize the number of methods in the public interface of a class. This 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 ==
 
== See also ==
 
* [[Riel's heuristics]]
 
* [[Riel's heuristics]]
 
* [[Fat interfaces]]
 
* [[Fat interfaces]]
 +
 +
[[Category:Riel's heuristics]]

Revision as of 23:27, 20 July 2009

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

Minimize the number of methods in the public interface of a class. This 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