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

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

From: Matt S Trout
Subject: Re: Annouce: DBIx::Class, a.k.a "taking the easy way out"
Date: 22:52 on 25 Jul 2005
On Mon, Jul 25, 2005 at 03:00:34PM -0700, Michael G Schwern wrote:
> On Mon, Jul 25, 2005 at 02:54:55PM -0700, Michael G Schwern wrote:
> > 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.
> 
>   package DBIx::Class::Core;
> 
>   use strict;
>   use warnings;
> 
>   use base qw/DBIx::Class::Relationship
>               DBIx::Class::SQL::OrderBy
>               DBIx::Class::SQL::Abstract
>               DBIx::Class::PK
>               DBIx::Class::Table
>               DBIx::Class::SQL
>               DBIx::Class::DB
>               DBIx::Class::AccessorGroup/;
> 
>   1;
> 
> 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 :)

        -- 
             Matt S Trout           Website: http://www.shadowcatsystems.co.uk
  Technical Director        E-mail:  mst (at) shadowcatsystems.co.uk
Shadowcat Systems Ltd.

(message missing)

Re: Annouce: DBIx::Class, a.k.a "taking the easy way out"
Matt S Trout 22:52 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