Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
laziness, impatience, and hubris
 
PerlMonks  

Re: Why did DBIC overtake CDBI?

by jk2addict (Chaplain)
on Sep 19, 2006 at 17:44 UTC ( #573777=note: print w/ replies, xml ) Need Help??


in reply to Why did DBIC overtake CDBI?

Sorry I'm late to the party. :-) As the author of Handel, I've lived in both camps. I started with CDBI, and converted to DBIC. The community and past internet argument explosions aside surrounding CDBI, there were two main reasons I moved towards DBIC.

First, DBIC seems to make more of an effort to get out of my way if I want it too. I can delegate to it, or an instance of it (via Schema), rather than having to be it (@ISA Class::DBI). This means I can take a bottom up approach to my DBIC based application; whereas a CDBI based application seems to start at the top and work downword.

Second, DBIC provides an insane amount of flexibility and configuration. There's an option of accessors for just about any step in the process. IT allows me to do things I'd never try with CDBI; things like interchanging schemas into the same app code; being able to inject columns, components, constraints, validaiton, etc into schemas and table objects on the fly...even into instance of table classes, rather than the table class itself.

If you need to do magic, DBIC is more capable of it IMHO.


Comment on Re: Why did DBIC overtake CDBI?
Re^2: Why did DBIC overtake CDBI?
by mattr (Curate) on Sep 21, 2006 at 02:54 UTC
    Wow, thank you that is a great comment. It makes me want to start from scratch and read everything about DBIC to get all the power out of it you mention and which I had not realized having just dipped in to relevant parts here and there and starting to explore up and down it.

    Matt

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://573777]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-04-19 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls