When is a glue or management class doing too much?
Posted
by
jprete
on Programmers
See other posts from Programmers
or by jprete
Published on 2011-03-19T04:42:09Z
Indexed on
2011/03/19
8:17 UTC
Read the original article
Hit count: 214
I'm prone to building centralized classes that manage the other classes in my designs. It doesn't store everything itself, but most data requests would go to the "manager" first. While looking at an answer to this question I noticed the term "God Object". Wikipedia lists it as an antipattern, understandably.
Where is the line between a legitimate glue class, or module, that passes data and messages from place to place, and a class that is doing too much?
© Programmers or respective owner