Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Re: Re: best practice

by dragonchild (Archbishop)
on Aug 27, 2001 at 18:49 UTC ( #108140=note: print w/replies, xml ) Need Help??

in reply to Re: Re: best practice
in thread best practice

A rough draft would contain a lot of the following type of lines:
#GGG Add error-checking here. #GGG When in production, this line changes to $foo=2;
'GGG' is just a character string that allows me to search for it and find all my to-do notes.

Also, a rough draft doesn't have good comments. It doesn't have a lot of error-checking (though you should build it in as you go.) It probably also isn't factored very well.

What a rough draft does have is good variable names. Changing variable names in mid-stream is a pain in the ass. Get your names right. If you can't name a variable neatly and succinctly, that's a clue that you don't understand what you're doing.

(The above paragraph goes doubly for function names.)

/me wants to be the brightest bulb in the chandelier!

Vote paco for President!

Replies are listed 'Best First'.
Re: Re: Re: Re: best practice
by Aighearach on Aug 27, 2001 at 22:24 UTC
    Well, if that was what I meant by a rough draft, I wouldn't be recommending it as an alternative to pseudocode, but rather as an addition.
    Snazzy tagline here

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2020-10-21 02:08 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (212 votes). Check out past polls.