At 07:33  8/2/01 -0800, [EMAIL PROTECTED] wrote:
>> >That's the key - "plug compatible". But we are in java, and writing a
>> >simple adapter should be very easy. Adapters don't add so much complexity.
>> 
>> The question is that if we have plug-compatability then what is the point
>> of having multiple implementations? (besides keeping massive scalability).
>
>"Plug compatible" doesn't mean same API, it means you should be able to
>write an adapter  and use one or another. Yes, glue code may be required.

Well if something is "Plug compatible" that generally implies that it can
be plugged into other "sockets". However if every component has a different
shaped plug and requires different shaped "scokets" then what you have is
not pluggable but a repository of different components.

>Again, the goal is not to define APIs for components - that's a different
>business. The goal is to have a good modularization of code and clear
>dependencies - where needed. 

Low coupling has some advantages as does high coupling. Low coupling
increase intra-component duplicity while high coupling decreases
inter-project duplicity. Low coupling allows more reuse while high-coupling
allows better integration.

Compare it to the GUI space as that is significantly more unified. Who
would choose to use non-swing components if they were developing within the
swing framework? 

>Each component can expose as much or little as it wants - and if for a
>particular task there are 2 components it should be possible to write an
>adapter. 

As long as the adapter follows the lowest possible denominator approach
then sure.

>Even in CPAN, you can have multiple modules doing similar tasks, each with
>it's own API. And you have modules depending on other modules.

Then again it is just a component repository. Each component utilising
different patterns (or the same patterns differently).

If we were to go the complete CPAN approach then we need to ask - whats the
significance of the project anymore? 

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


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

Reply via email to