Module 15 Overview
Module 15: Best Practices focuses on the soft skills of programming: maintainability, readability, and reliability. Writing code that works is easy; writing code that others can understand and trust is hard.
In this module, we will adopt industry standards for style, documentation, and testing.
Learning Objectives
Section titled “Learning Objectives”By the end of this module, you will be able to:
- Write code that adheres to PEP 8, the official Python Style Guide.
- Document your code effectively using Docstrings and Type Hints.
- Verify your logic using Unit Tests (
unittestandpytest). - Debug issues systematically using Logging and the Debugger (
pdb). - Package your project for distribution using
setuptools.
Module Contents
Section titled “Module Contents” PEP 8 Style Guide Formatting code the Pythonic way.
Documentation & Typing Writing clear docstrings and using type hints.
Testing Ensuring reliability with automated tests.
Debugging & Logging Finding and fixing errors professionally.
Packaging Preparing your code for the world.