kansas-city-pm-list  

Re: Good OO modules as study guide

D. Hageman
Thu, 17 Oct 2002 13:33:09 -0700

DBI is a very ugly module ... 

I use OO on a daily basis with a system that I developed similar to the 
many Web toolkits out there under mod_perl.  The basic concept is that I 
abstracted out the generic handler function and the "rendering" 
functionality.  I have an XML core and by dynamically inheriting the 
render module I can output to HTML, TXT, PDF, WML, etc ... OO realy works 
well under mod_perl and doesn't have as bad of peformance penalty that OO 
normally has under standard apps since everything is pre-loaded.

Well, that wasn't what you asked ...

It is big, but it illustrates the multiple types of OO relationships ... 
has-a, is-a ... Mail::Box

It still needs some work because it pukes on some mail formats.  I was 
working with this module this weekend, so I don't claim to be an expert on 
it.  XML::LibXML's DOM interface is also nice, but most of that code 
resides in the C glue code.


On Thu, 17 Oct 2002, Doug Sparling wrote:

> I believe Garrett had mentioned that the DBI did't turn out to be a good module to 
>study for OO programming. Does anybody have any suggestions of a few good OO modules 
>for code study?
> 
> --
> doug sparling - uclick
> 

-- 
//========================================================\\
||  D. Hageman                    <[EMAIL PROTECTED]>  ||
\\========================================================//