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: 22:53 on 25 Jul 2005
On Mon, Jul 25, 2005 at 11:52:02PM +0100, Matt S Trout wrote:
> > You're doomed.
> 
> And yet
> 
> matthewt@mccoy:DBIx-Class$ ls t/cdbi-t/
> 01-columns.t      04-lazy.t         09-has_many.t  15-accessor.t  19-set_sql.t
> 02-Film.t         06-hasa.t         11-triggers.t  16-reserved.t  98-failure.t
> 03-subclassing.t  08-inheritcols.t  12-filter.t    18-has_a.t
> 
> and it happily passes all of them (bar a few redacted because I haven't used
> quite the same implementation, and a fair chunk because I haven't figured
> out what sort of iterator I want yet.
> 
> Anyway, doomed is what they called me when I dived into the cdbi internals
> to add resultset caching to Sweet, and when I added prefetch. On the whole,
> I think I like being doomed :)

Its a long term doomed.  DOOOOOOOOOOOOOOOOOOOOOOOOMED!  Multiple inheritance
of unrelated classes is the sort of thing that lets you solve your problem
now but trips you up later on down the road.

I thought multiple inheritance was a great idea and look at how long it 
worked out fine before the cracks in CDBI started to show.

*RATTLING CHAINS* Learn from my fate!


        -- 
        Michael G Schwern     schwern@xxxxx.xxx     http://www.pobox.com/~schwern
Reality is that which, when you stop believing in it, doesn't go away.
	-- Phillip K. Dick

(message missing)

Re: Annouce: DBIx::Class, a.k.a "taking the easy way out"
Michael G Schwern 22:53 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:36 on 28 Jul 2005 by mariachi v0.52