Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Avoiding silly programming mistakes

by bruno (Friar)
on Aug 20, 2008 at 14:04 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://705516]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found