Debugging and defensive programming

Overview

  • Define a bug
  • Review best practices for reading, writing, and styling code
  • Interpret function documentation
  • Distinguish between errors, warnings, and messages
  • Introduce traceback() and explain how to read it
  • Identify and practice methods for error handling and recovery

Before class

Class materials

What you need to do after class

Benjamin Soltoff
Benjamin Soltoff
Lecturer in Information Science