NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Yay RJBS and me. (Score:2)
--
xoa
PBP (Score:1)
I'm not completely reformed yet, but ...
I like the book so well I bought the course for my colleagues.
I like the book so well I bought a second copy to keep at the office.
Bill
# I had a sig when sigs were cool
use Sig;
Re:PBP (Score:1)
However the book is not perfect.
I've been stung by three of Damian's recommendations so far: replacing '' with q{} (without thinking); using 'version.pm' (won't compile on Solaris); using 'Readonly' instead of 'constant' (Readonly won't compile on Solaris).
And I refuse to use '
Re:PBP (Score:2)
While I won't be held responsible for the deficiencies of Solaris (;-), I am very keen to know how replacing '' with q{} stung you.
The usual confusion is that people expect assignments and commas (especially in argument lists) to be of lower precedence than those three boolean connectives. But as long as it encouraged you to think through your decis
Re:PBP (Score:1)
Since I have yet to purchase the book what exactly does replacing " with q{} mean? Are we talking simple assignments like:
Or something totally different?
Re:PBP (Score:1)
Damian recommends replacing empty strings (often typed as '' (singlequote-singlequote)) with q{} so you don't misread it as one doublequote (which is exactly what happened in my previous post).
Re:PBP (Score:1)
Oh I will get the book. No doubt about that.
And the reasoning for q{} seems sound as well. That will be a re-trainer though. : )
Re:PBP -- compiles on Solaris? (Score:1)
version.pm' won't compile on Solaris
Per CPAN Testers, version and Readonly compile on Solaris with 5.8.5 http://testers.cpan.org/show/version.html [cpan.org] http://testers.cpan.org/show/readonly.html [cpan.org]
Are you trying to use Solaris bundled 5.005_03? Trying to build C-based modules with a different compiler than Perl was built with?
Bill
# I had a sig when sigs were cool
use Sig;
Oh! (Score:1)
Re:Oh! (Score:1)
Re:Oh! (Score:1)
What I think of PBP (Score:1)
I laughed, cried, fell down, my life was changed. Well, maybe I didn't cry so much ;-).
Seriously though, best perl book since I first picked up the Camel. Any project that uses PBP as a guideline is doing at least one thing right.
In a way it's a shame this came out in this form though. I'd imagine that a guide to perl best practices could best be implemented in a wiki, with arguments for and against certain practices as well as updates and additions from the community. The book would be a perfect baseline
Re:What I think of PBP (Score:2)
PBP (any "best practices" in general) works best when it comes from a single voice. Damian synthesized a lot of experience when he condensed it into a dead tree. So this isn't one lone kook's guide to what makes for good Perl, but a coherent guide to what some of th
Very useful read (Score:2)
I got mine this week and have been skimming through it this week before going to sleep. I can't say I agree with everything, but he argues his case and it's a mostly consistent story. Probably the best perl book I've read since Effective Perl Programming.
-- "It's not magic, it's work..."
Re:Very useful read (Score:1)
Plug: we'd be thrilled to have more contributors for Policy modules! Our SVN repository is at perlcritic.tigris.org. I've added a list of wanted PBP recommendations in the TODO file [tigris.org]
Re:Very useful read (Score:1)
Re:Very useful read (Score:1)
Since I was so harassed! (Score:1)
Thumbs up (Score:1)