Re:Why Don't Schools Teach Debugging?
by wolfgke on Tuesday February 11, 2014 @08:52PM
(#7221970)
How to teach the knack:
Write lots of code that uses the most sketchy language features available. The chance is high that soon you'll get code that doesn't work. Now go through each line (source code or assembly) using a debugger of your choice and get it to work again.
Do this until there is nothing that will scare you anymore.
Re:Why Don't Schools Teach Debugging?
by Illotus on Tuesday February 11, 2014 @11:45PM
(#7222548)
Also, do lots of maintenance programming. Finding bugs in code someone else wrote is generally much more difficult (and in my opinion valuable in learning sense), because you aren't familiar with it.
Write lots of code that uses the most sketchy language features available. The chance is high that soon you'll get code that doesn't work. Now go through each line (source code or assembly) using a debugger of your choice and get it to work again.
Do this until there is nothing that will scare you anymore.