[Pdx-pm] Seven Sins of OO Perl

Austin Schutz tex at off.org
Tue Sep 27 11:19:44 PDT 2005

On Sat, Sep 24, 2005 at 12:33:00PM -0700, chromatic wrote:
> Hi all,
> As promised, here's my list of guidelines for OO Perl from the talk
> earlier this month:
> 1) Don't call methods as functions (especially methods in UNIVERSAL)
> 2) Don't use AUTOLOAD() to generate methods unless you know the four
> things you need to do to make it work reliably
> 3) Don't use indirect object method calls, even for constructors
> 4) Access instance data directly only from accessor methods
> 5) Don't forbid inheritance from your classes
> 6) Use Test::Class to make everyone's life easier
> 7) Don't use inheritance when aggregation, delegation, roles, or mixins
> would do

	Is there a slightly less abbreviated version of this somewhere? :-)

	I was hoping to make it to the talk, but life happened as it often



More information about the Pdx-pm-list mailing list