Re: Annouce: DBIx::Class, a.k.a "taking the easy way out"

[prev] [thread] [next] [Date index for 2005/07/25]

From: Michael G Schwern
Subject: Re: Annouce: DBIx::Class, a.k.a "taking the easy way out"
Date: 21:54 on 25 Jul 2005
On Mon, Jul 25, 2005 at 04:40:24PM +0100, Tony Bowden wrote:
> FWIW one of my overriding goals since taking over Class::DBI was to get
> rid of the multiple inheritance.
> 
> 0.28 had the wonderful code:
> 
>   use base qw(Class::Accessor Class::Data::Inheritable Ima::DBI
>               Class::Fields::Fuxor Class::Fields);
> 
> I haven't quite gotten as far as I'd like yet, but I at least got rid of
> the last two...

But its a triumph of mulitple inheritance.  A TRIUMPH I SAY!!! ;)


For those who have no idea what I'm talking about, the first talk on CDBI
was entitled 

	Class::DBI - A Collection of Solved Problems
			or
	a Triumph of Multiple Inheritance

http://www.pobox.com/~schwern/papers/Class-DBI/Class-DBI-paper.pod

In which I naively lay out how I've neatly built up CDBI by inheriting from
a collection of modules... which all do different things!  Needless to say,
I have since repented and seen the Light of Delegation and Mixins.  But it
seemed like a good idea at the time.

I like to drag out that paper from time to time to give Tony nightmares.
BOOGA BOOGA! :P


        -- 
        Michael G Schwern     schwern@xxxxx.xxx     http://www.pobox.com/~schwern
Insulting our readers is part of our business model.
        http://somethingpositive.net/sp07122005.shtml

(message missing)

Re: Annouce: DBIx::Class, a.k.a "taking the easy way out"
Michael G Schwern 21:54 on 25 Jul 2005

Delegation vs Hooks (was: Annouce: DBIx::Class, a.k.a "taking the easy way out")
=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= 23:27 on 26 Jul 2005

Generated at 16:37 on 28 Jul 2005 by mariachi v0.52