[Mastering-perl] Check out the chapters on configuration, subroutines, and Pod

brian d foy brian.d.foy at gmail.com
Wed Sep 20 21:49:10 EDT 2006


On 9/20/06, Derek B. Smith <derekbellnersmith at yahoo.com> wrote:

> One thing I did notice that I forgot to mention. I
> noticed in some of your code you DID NOT use "best
> practice" in some blocks of code.

> Remembering the text from Best Practices, you guys
> stated do not cuddle if or else statments on new
> lines.

Well, In _Perl Best Practices_, Damian Conway stated his opinions on
many things. He explains his reasoning, but that's just his reasoning.
Indeed, if you read Damian's introduction, you'll see that he isn't
stating hard rules. I don't really like the term "Best". Many are good
practices, but most aren't superior practices.

Also, if you check out the introduction to Mastering Perl, you'll see
that I talk about the apprentice soceity, where you should learn from
many masters. If you only ever see Damian's way of doing things, you
end up with a limit perspective. Mastering Perl is my way of doing
things. :)

> Another thing that would be nice to see in your book
> is modules that are similar to Data::Dumper such as
> Smart::Comments.

Smart::Comments, one of Damian's modules, is a source filter, meaning
that it should disappear from the face of the earth. It's definitely
not a good practice. :)

-- 
brian d foy <brian.d.foy at gmail.com>
http://www.pair.com/~comdog/


More information about the Mastering-perl mailing list