How To Fix Bugs

How To Fix Bugs

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 .

8341c5bff3dcbd8ed34d9d68bd4169f2?s=128

Jason Orendorff

December 16, 2013
Tweet

Transcript

  1. None
  2. How To Fix Bugs Jason Orendorff ~ @jorendorff

  3. What not to do ~ Feel discouraged ~ Smush the

    code around until it goes away ~ Fix it without understanding
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. What not to do ~ Feel discouraged ~ Smush the

    code around until it goes away ~ Fix it without understanding
  13. None
  14. None
  15. How to fix bugs ~ Get steps to reproduce ~

    Make a test case ~ Get more information
  16. How to investigate ~ Learn to read a stack trace

    ~ Dump the data ~ Tie off loose ends ~ Work backwards ~ Learn the tools
  17. Writing debuggable code ~ Check in the test ~ Look

    everywhere for the same mistake ~ Write debug methods ~ Write assertions ~ Make it obviously correct
  18. good hunting