Pro Python Best Practices: Debugging, Testing and Maintenance

  • 5h 2m
  • Kristian Rother
  • Apress
  • 2017

Learn software engineering and coding best practices to write Python code right and error free. In this book you’ll see how to properly debug, organize, test, and maintain your code, all of which leads to better, more efficient coding.

Software engineering is difficult. Programs of any substantial length are inherently prone to errors of all kinds. The development cycle is full of traps unknown to the apprentice developer. Yet, in Python textbooks little attention is paid to this aspect of getting your code to run. At most, there is a chapter on debugging or unit testing in your average basic Python book. However, the proportion of time spent on getting your code to run is much higher in the real world. Pro Python Best Practices aims to solve this problem.

What You'll Learn

  • Learn common debugging techniques that help you find and eliminate errors
  • Gain techniques to detect bugs more easily
  • Learn techniques to keep your project under control

Who This Book Is For

Experienced Python coders from web development, big data, and more.

In this Book

  • Introduction
  • Exceptions in Python
  • Semantic Errors in Python
  • Debugging with the Scientific Method
  • Debugging with print Statements
  • Debugging with Introspection Functions
  • Using an Interactive Debugger
  • Writing Automated Tests
  • Organizing Test Data
  • Writing a Test Suite
  • Testing Best Practices
  • Version Control
  • Setting Up a Python Project
  • Cleaning Up Code
  • Decomposing Programming Tasks
  • Static Typing in Python
  • Documentation
SHOW MORE
FREE ACCESS