Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2014-09-18 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls