Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

more philosiphizing...

by jlistf (Monk)
on Aug 15, 2000 at 21:23 UTC ( [id://27963]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://27963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-24 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found