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:00 on 25 Jul 2005
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.


        -- 
        Michael G Schwern     schwern@xxxxx.xxx     http://www.pobox.com/~schwern
You are wicked and wrong to have broken inside and peeked at the
implementation and then relied upon it.
	-- tchrist in <31832.969261130@chthon>

(message missing)

Re: Annouce: DBIx::Class, a.k.a "taking the easy way out"
Michael G Schwern 22:00 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