M
mike3
On Nov 22, 11:02 am, mike3 <[email protected]> wrote:
What I am talking about here is also known as "interface segregation
principle": for a given part of your code, you want to pass in things
it needs to do the work. To do that in a clean way, a good way is to
create the interface (from the rest of your code) to another part, and
pass that interface in. You don't want one big great massive thing
that can do everything, and then cherry-pick what you need from that
great big thing. That's akin to a global variable, except that you
avoided having it as one, by passing it -everywhere- through a
parameter.
However, the display isn't a "great big thing that does everything",
is
it? Aren't you talking about this?:
http://en.wikipedia.org/wiki/God_object
But I fail to see how the display ends up being one of those. It's
just
a display.