English subtitles

← After the Fix - Software Debugging

Get Embed Code
4 Languages

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

  1. After we have fixed the program we need to check two things.
  2. First, we need to check whether the same error has been made elsewhere.
  3. In our case, if there is a programmer who has confused the precedence
  4. of ors and ands, it may be a good thing to check the code for other places,
  5. and to make sure that all of these have proper parentheses around them,
  6. which anyway is a good programming practice.
  7. Second, we want to make sure that the error does not occur again.
  8. and we can do so either by writing appropriate tests, see the other Udacity
  9. course for how to do that.
  10. Or, we can include appropriate assertion in the code that makes sure the error will not occur again.