Middle man smell
From CSSEMediaWiki
(Difference between revisions)
JaninaVoigt (Talk | contribs)
(New page: In object oriented programming, it is common to delegate some work to other objects. However, if a class delegates the majority of work to another class, it is just a middle man and should...)
Newer edit →
(New page: In object oriented programming, it is common to delegate some work to other objects. However, if a class delegates the majority of work to another class, it is just a middle man and should...)
Newer edit →
Revision as of 05:34, 31 July 2009
In object oriented programming, it is common to delegate some work to other objects. However, if a class delegates the majority of work to another class, it is just a middle man and should be removed. Instead, you should talk directly to the class that implements the behavior rather than going through the middle man.