Julian Camilleri - Building a clean, maintainable and tested code base

Conference: EuroPython 2021

Year: 2021

Building a clean, maintainable and tested code base [EuroPython 2021 - Talk - 2021-07-30 - Optiver] [Online] By Julian Camilleri An introduction to how to write clean code (type hinting, docstrings, inline comments et cetera) and supporting the clean code with maintainable project structure and unit tests. Goals - with comparisons/examples: What's clean, maintainable code? (type hinting, docstrings, inline comments et cetera) What's a clean, navigatable project structure? Should the tests package be nested into each package? Should my 'tests' package structure mirror the project structure? (for easy navigation of which module/package is being tested) (Testing) What should I test and what shouldn't I test? (Testing) When should I mock and when shouldn't I? (Testing) Writing clean test cases (Testing) Using pytest to utilize parametrize to test multiple combinations, whilst keeping a clean codebase License: This video is licensed under the CC BY-NC-SA 4.0 license: https://creativecommons.org/licenses/by-nc-sa/4.0/ Please see our speaker release agreement for details: https://ep2021.europython.eu/events/speaker-release-agreement/