Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Avoiding silly programming mistakes

by bruno (Friar)
on Aug 20, 2008 at 14:04 UTC ( #705516=note: print w/replies, xml ) Need Help??

in reply to Avoiding silly programming mistakes

Being a beginner myself, I know what you mean. I am unable to write two statements in a row without making one mistake. The best way that I found to come around this is by writing code in small chunks and testing them in isolation.
So I will normally have two open buffers; in the first one I am writing the actual script and in the second one I test the current working paragraph. This way, spelling mistakes and bugs are caught earlier, and I seldom have to hunt them down too much.

Of course there is also the case that other bugs arise when this "code chunks" interact poorly, but most of the "d'oh" mistakes become evident earlier this way.

  • Comment on Re: Avoiding silly programming mistakes

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2020-11-30 04:48 GMT
Find Nodes?
    Voting Booth?

    No recent polls found