Re: Opinions on the Law Of Demeter

From: Andrew McDonagh (news_at_andrewcdonagh.f2s.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 15:31:26 +0100

Ilja Preuß wrote:

snipped

> Ok, I can live with that interpretation.
>
> When I was talking about chaining method calls, I was thinking about things
> like
>
> getPlatform().getRepositoryManager().getRepositoryMap().getRepository("foo")
> .getEntry("bar").getTemplate().load();
>
> Yes, I *have* seen code like that... <sigh>

Me too, makes you want to cry eh. Its not so much as Middle Man, more of
Middle Men!