Автор: Patrick Viafore
Издательство: O’Reilly Media
Год: 2020
Формат: EPUB
Страниц: 150
Размер: 10 Mb
Язык: English
Do you use Python? Do you feel like your projects are getting bigger and bigger? Are you feeling the pain as your codebase grows and gets tougher to debug and maintain? Python is an easy language to learn and develop in, but that also means it's easy for systems to grow beyond comprehension quickly.
Thankfully, Python has features that help developers overcome maintainability woes. In this book, we're going to look at how to effectively use Python's typing system to the max. We'll look at user defined types, such as classes and enums, as well as Python's type hinting system. We'll explore how to make your Python extensible, and how to have a comprehensive testing strategy as a safety net. At the end, you'll be able to write clearer and more maintainable code using Python types.