We don't bite newbies here... much | |
PerlMonks |
Re: Perl Programming guidelines/rulesby Juerd (Abbot) |
on Nov 22, 2002 at 05:36 UTC ( [id://215010]=note: print w/replies, xml ) | Need Help?? |
Some suggestions:
3. no deliberate obfuscation s/deliberate// 5. OO always to be used where possible s/possible/appropriate/ 6. Pass by reference .= ' when appropriate' 9. Do not reinvent wheel always check CPAN .= ' but do reinvent elliptic wheels' 19. All subroutines to be commented s/commented/documented/ 23. No Global Variables s/Glo/Needless Glo/ 24. use my not local Repeats 23 28. Do not use $_ WTF? Why not? s/foo/bar/ for @xyzzy; 30. Initialise variables Repeats 1 32. Where code returns a result it should do so or die with a meaningful error and $! Always die? Even with errors that aren't fatal?
In Section
Meditations
|
|