Re: OO Architecture

[email protected] (Jochen Wiedmann) Fri, 23 Sep 2005 23:01:44 +0200
Newsgroups perl.dbi2.dev
Message-ID <[email protected]>
Tim Bunce wrote:

> Ah, you can't get away that easily! *Why* do you strongly believe it is?

Arrgh! He got me. :-)

There is a simple argument: In the last years, there were many examples 
of users who wanted this and that feature to be in the DBI. A typical 
response was: Create your own DBI subclass and publish it on CPAN. If 
your ideas are good, the subclass will be used and the ideas will at 
some time be merged into the DBI.

To me, this is an excellent example of the tmtowtdi principle. It is 
matching Perl's philosophy.


> What examples of DBI subclassing can you show to prove your case?

DBI::ProxyServer :-) (Bad example, to be honest, because it could have 
been written in a different manner.)


> How do Java developers get around the lack of subclassability in JDBC?

Typically they write proxy drivers, which sit on top of the actual 
driver. Besides, there is always AOP. AFAIK, there is nothing like AOP 
in Perl 5. Perhaps Perl 6 is different?


Jochen