Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Coding styles using if/else

by roboticus (Chancellor)
on Apr 06, 2007 at 12:57 UTC ( [id://608653]=note: print w/replies, xml ) Need Help??


in reply to Re: Coding styles using if/else
in thread Coding styles using if/else

superfrink:

And that blank area between the CLAIM and GOAL is the perfect location for:

# CLAIM: all input values are valid assert($name ne ""); # GOAL: process input values
(Yes, the exit above moots the assert in this case, but not all functions check all arguments.)

...roboticus

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-18 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found