in reply to How do I prototype a function with a varying number of arguments?
Your commenting style hit me in the face like a 1960s COBOL manual. Generally, you are "over commenting". You need to get to the point. Be precise and succinct. Maintenance programmers are often under time pressure. Don't force them to wade through unnecessary comments, "conversational" comments, or witty jokes to get to the meat. A couple of examples of poor commenting from your code:
This comment is unnecessary and jokes like these get old very quickly.# # setup requirements, eat your greens #
Don't belabour the obvious!# # Return the value. # return $value;
Perl Best Practices has an excellent chapter on Documentation, which I recommend you read. Some commenting tips (taken from On Coding Standards and Code Reviews):
A couple of other things I noticed:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I prototype a function with a varying number of arguments?
by JavaFan (Canon) on Jul 30, 2011 at 10:08 UTC | |
by eyepopslikeamosquito (Archbishop) on Jul 30, 2011 at 13:45 UTC | |
|
Re^2: How do I prototype a function with a varying number of arguments?
by pemungkah (Priest) on Jul 31, 2011 at 19:10 UTC | |
by JavaFan (Canon) on Jul 31, 2011 at 21:15 UTC | |
by pemungkah (Priest) on Aug 08, 2011 at 17:47 UTC | |
|
Re^2: How do I prototype a function with a varying number of arguments?
by lyapunov (Novice) on Aug 01, 2011 at 21:46 UTC |