A talk for new programmers. My attempt to tell you all the stuff that will seem like common sense to you in two years.
This presentation is not very useful without the full text, which you can read at https://gist.github.com/jorendorff/8008765 .
View Slide
How To Fix BugsJason Orendorff ~ @jorendorff
What not to do~ Feel discouraged~ Smush the code arounduntil it goes away~ Fix it withoutunderstanding
What not to do~ Feel discouraged~ Smush the code arounduntil it goes away~ Fix it without understanding
How to fix bugs~ Get steps to reproduce~ Make a test case~ Get more information
How to investigate~ Learn to read a stack trace~ Dump the data~ Tie off loose ends~ Work backwards~ Learn the tools
Writing debuggable code~ Check in the test~ Look everywhere for the same mistake~ Write debug methods~ Write assertions~ Make it obviously correct
good hunting