Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Perl Programming guidlines/rulesby mirod (Canon) |
on Nov 21, 2002 at 11:45 UTC ( [id://214744]=note: print w/replies, xml ) | Need Help?? |
This looks like a good start. I would add a couple of rules about variables:
And (of course!) I would argue with a couple of you rules : 14. Any reused code block above 5 lines must become a sub routine 5 lines can be a _LOT_ of code! The risk with that kind of rule is that some people might read it as "it's fine to cut'n paste up to 4 lines of code" or even "don't bother writing a sub that's less than 5 lines" 28. Do not use $_ $_ should not be abused but it has its uses and can make some blocks of code much clearer.
In Section
Meditations
|
|