[Zope-dev] Externalize or Adapt? (ZPatterns)

Mike mike@if-site.com
Thu, 08 Jun 2000 21:18:17 +0800


Hi,

suppose I have two Specialists (A and B) written independently each
other. I need to use certain set of services provided by one Specialist
(A) in other (B). I see two way:

1) Create common proxy for A, implementing public subset of A's
interface and make B (and other possible clients) depending on that
externalized interface.
Problem: high dependency on A's external interface

2) Write specialized (A->B) pluggable adapters each time I need to use
A's services in clients.
Problem: M*N

What do you think is ... hmmm... less painful way?

Thanks,
Mike