Re: implementing zope.component 4.0

Martin Aspeli <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
Chris McDonough wrote:
> Thomas Lotze wrote:
>> Martijn Faassen wrote:
>>
>>> * a utility never has a connection. That's because it already got
>>> instantiated long before the lookup takes place.
>> Isn't it the other way around: A utility never has a connection to any
>> adapted object, and that's *why we can* instantiate it long before the
>> lookup takes place.
>>
>> I think the difference between these two perspectives may have to do with
>> why some people in this discussion confuse (as I see it) the concepts of
>> instance vs. factory registration and adapter vs. utility lookup.
> 
> I'm not confused.  I understand this worldview.
> 
> I'm just arguing that this worldview is less understandable for new users and 
> maintenance programmers than it would be to leave them distinct (or to "unify" 
> them by providing an API like "lookup" which never calls the result of an 
> adaptation).  The conceptual beauty of how they might be otherwise similar is 
> meaningless to new users and maintenance programmers.

... and possibly hostile to people who've educated themselves about the 
current patterns and nomenclature.

Anyway, I get the feeling we've moved on, and that this issue is 
eclipsing the more worthwhile discussion about API design and 
consistency, which I think we all want.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.