Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Are debugging skills atrophying?

by chromatic (Archbishop)
on Apr 30, 2001 at 01:07 UTC ( #76507=note: print w/ replies, xml ) Need Help??


in reply to Are debugging skills atrophying?

I write unit tests first. Since I know what the code must do, it's easy to write tests that will verify that it does exactly that.

I'm not a good enough programmer yet that the code and the tests are always completely accurate with regards to what must be done, but if the test fails after I've written the code, I know something's definitely wrong.

It's a lot faster, too, especially when adding a new feature.

Chalk that up to debugging avoidance -- planning ahead and proving your code correct is how I reduce debugging time. (It's especially nice if you can whittle down the error to the last two lines of code you added.)


Comment on Re: Are debugging skills atrophying?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (20)
As of 2014-09-23 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (221 votes), past polls