--- Victor Mote <[EMAIL PROTECTED]> wrote:
> 
> If I'm going to give up encapsulation or Separation
> of Concerns, or whatever
> you want to call it, what do I get in return? 
>

IMO you're not "giving up" SoC, you're gaining it:

The 
"manager<-->A<-->B<-->C<-->D<-->customer model"
keeps the business logic inherent to each object's
duties within each object.

The other model, in which the manager sticks his
fingers in various parts of the process in every
object, is what I consider to break encapsulation.

> I give
> up reusability,

Not necessarily--going back to the bakery example
(where reusability = hirability externally), Employee
A fully knows how to buy the bread, B knows how to
make the dough, C knows how to cook it, etc.  They are
all very smart, self-contained objects.

In the other model, by taking business logic out of
the objects and into the manager the A, B, C, D become
more dependent on that specific manager, and less
hirable without him/her.

> simplicity, 
> and the ability to divide-and-conquer.

For these two, indeed all of them, one can probably
argue either way.  Let's agree to disagree.

Glen

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to