[Zope3-dev] Re: Container interface issues
Garrett Smith
garrett at mojave-corp.com
Wed Sep 10 14:09:33 EDT 2003
Fred L. Drake, Jr. wrote:
> Garrett Smith writes:
> > If developers are adding things to containers this way, my guess is that
> > they're well on their way to working with specific interfaces and using
> > adapters.
>
> That's not the issue. The point of moving this particular invocation
> to a helper function exposed (wherever) is to ensure that it's spelled
> the same way every time, and to move a common(?) set of steps out of
> the application-centric code. The specific interfaces here aren't
> likely to change or be used for much else (I'm thinking of things like
> IAddTarget), so it makes sense to move this out of the application,
> which should be concerned with more application-specific operations.
I don't see how using an explicit, adapted interface fails to accomplish
this.
Is there a trend to move away from working with objects that fulfill
explicit contracts in favor of a single module full of convenience
methods? I hope not -- I really like the clarity of interfaces :-)
-- Garrett
More information about the Zope3-dev
mailing list