Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Just Fix It - Software Debugging

Get Embed Code
4 Languages

Showing Revision 3 created 05/24/2016 by Udacity Robot.

  1. At this point, we have systematically fixed the first bug
  2. using the scientific method to systematically come up with a hypothesis and refine it,
  3. refine it again, possibly come up with alternatives until we end up with a diagnosis.
  4. So if you're an experienced programmer--and I assume you are--
  5. you may now wonder, "Why on Earth should I actually go through all these
  6. explicit steps if I can just jump into my debugger and fix the problem right away?"
  7. It's actually likely that you have spotted the problem at the very moment you saw the code.
  8. If you're a very experienced programmer, you can probably spot errors like these
  9. in hundreds and hundreds of lines from a distance of several hundred meters.
  10. You just look at the code and immediately see, "Well, there's something fishy in there."
  11. And all of this is, of course, right.
  12. There are many problems which you can immediately see
  13. and which you can immediately fix within 5 minutes
  14. including the one we just discussed
  15. And it's perfectly okay, if it only takes 5 minutes,
  16. to jump right into your editor and to fix things,
  17. to jump into your interactive debugger and fix things,
  18. as long as it doesn't take more than 5 minutes--
  19. because what happens if it takes more than that?