in reply to RE: RE: My philosophy on coding (in Perl and other languages): in thread My philosophy on coding (in Perl and other languages):
philosiphising? does anyone know how to spell that word?
anyway... my first programming teacher taught me that when you're commenting subroutines (or functions or methods) its usually a good idea to put in a 'precondition:' statement and a 'postcondition:' statement. in other words, tell the reader what the subroutine expects to recieve as arguments (including implicit error-checking perhaps) and what the subroutine will spit out as a return value.
jeff
|