in reply to Perl Programming guidelines/rules
The biggest problem with your list is that you have very little that can be objectively tested. A checklist item is useful if everyone could agree that you are following it, but otherwise it simply becomes a way to butt heads in a code review session.
On one of our slides, I bring up the example "you should generally 'use strict'" as a sample bad rule. It's bad because it can't be tested. Is this one of the times that you avoid use strict, or not?
I also have problems with some of your specific rules. For example, "Do not use $_". That's ludicrous. How will you do a grep or map? Or are you proposing coding everything in babybaby Perl?
A reasonable standard for presumption of the skill level of your maintenance programmer is:
But the biggest point I hope you're seeing is that you should write native Perl when you are writing Perl. Don't constrain Perl to just the parts that are C-like or Shell-like. You miss the point of programming in Perl.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Perl Programming guidlines/rules
by hakkr (Chaplain) on Nov 21, 2002 at 17:21 UTC | |
by Abigail-II (Bishop) on Nov 21, 2002 at 17:27 UTC | |
by hakkr (Chaplain) on Nov 21, 2002 at 17:37 UTC | |
by Abigail-II (Bishop) on Nov 21, 2002 at 18:14 UTC | |
by BUU (Prior) on Nov 21, 2002 at 23:48 UTC | |
| |
by perrin (Chancellor) on Nov 21, 2002 at 17:26 UTC |