views:

20

answers:

1

Ok, iv'e got another philosophical programming question. When do you debug your code? Do you debug as you go before you add in additional features or do you debug your code at the end of some cycle? Do you debug only when it's stopping you from moving forward with something? Also how does this cycle into cleaning up and writing betters versions of pieces of it. I'm wandering how this is between different skills of programmers. . .

+2  A: 

I personally write tests that fail then code to make them pass and debug along the way to make sure things are working as expected.

Check out http://en.wikipedia.org/wiki/Test-driven_development for more info on this style.

Scott
very cool, thanks for that!
egfx