Avoid interface pollution

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(New page: Riel's heuristics 2.6 ==See also== * Fat interfaces * Interface segregation principle)
 
 
Line 1: Line 1:
Riel's heuristics 2.6
+
:''Do not clutter the public interface of a class with things that users of that class are not able to use or are not interested in using. ''  --Riel's Heuristic 2.6, [[Arthur Riel 1996]]
 +
 
 +
This heuristic is a more general version of [[Avoid interface bloat]]. It states that you should not place things in a public interface which are not useful, interesting or usable by other classes, as they just add clutter.
  
 
==See also==
 
==See also==
 
* [[Fat interfaces]]
 
* [[Fat interfaces]]
 
* [[Interface segregation principle]]
 
* [[Interface segregation principle]]
 +
 +
[[Category:Riel's heuristics]]

Latest revision as of 23:38, 20 July 2009

Do not clutter the public interface of a class with things that users of that class are not able to use or are not interested in using. --Riel's Heuristic 2.6, Arthur Riel 1996

This heuristic is a more general version of Avoid interface bloat. It states that you should not place things in a public interface which are not useful, interesting or usable by other classes, as they just add clutter.

See also

Personal tools