Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

(bbq) Re: Re: Re (tilly) 1: When do you function?

by BBQ (Deacon)
on Dec 28, 2000 at 08:25 UTC ( #48590=note: print w/ replies, xml ) Need Help??


in reply to Re: Re (tilly) 1: When do you function?
in thread When do you function?

Oh, you are so on the nail on this... I've gotten into a habit of doing this instead of writting pseudo-code:

# authenticate user AuthenticateUser($foo,$bar) or die('Could not authenticate user'); # a while later... # do some stuff SomeStuff($more,@params) or die('Could not do more stuff cause reason'); # subs from here down ######################## sub AuthenticateUser { return(1); } sub SomeStuff { return(1); }
I tend to code this way especially when I'm discussing the program with colleages. Then we all get a copy and each one goes out to fill in his/her respective blanks. In the end, I believe the result is usually very clear and quite maintainable!

#!/home/bbq/bin/perl
# Trust no1!


Comment on (bbq) Re: Re: Re (tilly) 1: When do you function?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-07-03 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls