http://www.perlmonks.org?node_id=629611


in reply to Re: (Perl) Programming Books like the Camel Book
in thread (Perl) Programming Books like the Camel Book

I was skeptical at first, because I usually don't like "This is how you should do it" books. I just read the sample chapter at O'Reilly, though, and it looks to be full of good guidelines. I think I'll be picking it up.

Thanks!

  • Comment on Re^2: (Perl) Programming Books like the Camel Book

Replies are listed 'Best First'.
Re^3: (Perl) Programming Books like the Camel Book
by Argel (Prior) on Jul 30, 2007 at 18:43 UTC
    One of the things I really like about PBP is TheDamian will usually present you with some code and then in an "oh by the way" fashion point out the bug that you probably missed while looking over that code*. It's easy to say if you do X these are the pitfalls but to show a brief, good example of broken code made for a very compelling reason to follow his recommendations. And I actually learned a lot about Perl from that book. It's definitely one of the best Perl books out there.

    (*) He then shows code that follows his recommendation.

Re^3: (Perl) Programming Books like the Camel Book
by eyepopslikeamosquito (Archbishop) on Jul 30, 2007 at 21:45 UTC
Re^3: (Perl) Programming Books like the Camel Book
by tinita (Parson) on Jul 31, 2007 at 11:29 UTC
    because I usually don't like "This is how you should do it" books.

    this is such a common misconception about PBP. only people who haven't read it say it's a book that tells you how to code. it doesn't. read the foreword. it's important.

    the book's more like "well, very probably this is the way you should do it, because ... if you do it in another way, you are free to do, the important thing is that you thought about it."

      That comment was just my knee-jerk from seeing the title. Having read the sample chapter up, I found it to be exactly like you describe. I especially liked the examples of the troubles you can get yourself into. It is one thing to say "Do it like this because X," but having the "If you do it that why Y and Z can happen" drives the point home well.

      I feel like after reading it I'll definitely remember the advice while I'm coding, and if I'm not following the advice at least I'll know where issues can pop up.