Explore best practices for building clean, maintainable, and tested code bases in this 31-minute EuroPython 2021 conference talk by Julian Camilleri. Gain insights into writing clean code through type hinting, docstrings, and inline comments, while learning how to structure projects for easy navigation. Discover effective testing strategies, including what to test, when to mock, and how to write clean test cases. Learn to leverage pytest for parametrized testing to cover multiple combinations efficiently. Compare examples and understand the importance of clean code practices in creating robust and sustainable software projects.
Overview
Syllabus
Intro
Agenda
Characteristics
Imports
Functions
Code grouping
Look before you leap
Doctest
Mocking
Taught by
EuroPython Conference