Return to Video

After the Fix - Software Debugging

  • 0:00 - 0:03
    After we have fixed the program we need to check two things.
  • 0:03 - 0:06
    First, we need to check whether the same error has been made elsewhere.
  • 0:06 - 0:11
    In our case, if there is a programmer who has confused the precedence
  • 0:11 - 0:15
    of ors and ands, it may be a good thing to check the code for other places,
  • 0:15 - 0:20
    and to make sure that all of these have proper parentheses around them,
  • 0:20 - 0:22
    which anyway is a good programming practice.
  • 0:22 - 0:25
    Second, we want to make sure that the error does not occur again.
  • 0:25 - 0:28
    and we can do so either by writing appropriate tests, see the other Udacity
  • 0:28 - 0:31
    course for how to do that.
  • 0:31 - 0:33
    Or, we can include appropriate assertion in the code that makes sure the error will not occur again.
Title:
After the Fix - Software Debugging
Video Language:
English
Team:
Udacity
Project:
CS259 - Software Debugging
Duration:
0:37
Udacity Robot edited English subtitles for After the Fix - Software Debugging
Fran Ontanaya edited English subtitles for After the Fix - Software Debugging
Amara Bot added a translation

English subtitles

Revisions Compare revisions