[ABE.pm] Perl Best Practices?
Ricardo SIGNES
rjbs-perl-abe at lists.manxome.org
Fri Jul 28 07:01:48 PDT 2006
* Tom Freedman <tfreedman at iqep.com> [2006-07-28T09:27:51]
> Has anyone read (or skimmed, or perused) Damian Conway's latest book,
> "Perl Best Practices"? Being fairly new to Perl, it's a topic that
> interests me, and I've heard good things about his OO-Perl book. Just
> wondering if anyone has some opinions on his latest offering.
I did. I have a copy, if you'd like to borrow it.
He says some obvious, uninteresting things, like "pick and stick to a code
layout style." Of course, that is not obvious to some people, and having it in
a well-liked book is probably useful for convincing silly bosses.
He says some useful, more interesting things, like "use table-layout ternaries
for multiple disjunction." Like:
my $x = $a > 10 ? 'foo'
: $a > 5 ? 'bar'
: $a > 2 ? 'baz'
: 'XXX';
He also says some crazy-ass stuff like "use three-part version numbers" and
"use inside-out objects" and "put all POD in __END__." (There may be some
correlation between "stuff rjbs disagrees with" and "crazy-ass stuff." This is
surely coincidental.
Our style guide for coding at IC Group is "PBP, with the following 10
exceptions."
--
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060728/0b9029f7/attachment.bin
More information about the ABE-pm
mailing list