Best Sellers Rank: #416,748 in Books (See Top 100 in Books) #197 in Enterprise Applications #339 in Python Programming #414 in Software Development (Books)
Customer Reviews: 4.6 out of 5 stars 137Reviews
Product Information
From the Publisher
What’s new in this second edition of Clean Code in Python?
Key Takeaways:
Develop your skills as you work through content which increases in complexity
Explore how to correct problems that may arise due to inefficient code formatting
Learn expert Python coding techniques to create projects from scratch
Suitable for all software engineering practitioners who are interested in software design
The second edition is updated to include new features of the language up to Python 3.9, the latest version at the time of publishing.
I’ve focused more on asynchronous programming and how this programming model is becoming increasingly popular in the Python community. Learning to work with coroutines will prepare readers for new programming models that are more frequent in modern cloud architectures. New Python libraries are also introduced with intuitive explanations and examples.
What’s new:
Updated for Python 3.9
Introduction to asynchronous programming
Covers advanced topics in Python, such as decorators and descriptors
What are the key takeaways from your book?
Clean code isn’t about styling or formatting the code. It’s about building a code base that’s maintainable and easy to work with. This is a very important topic in software engineering because it touches on different aspects, such as design patterns, testability (and different kinds of automated tests), and principles of object-oriented design.
One of the main ideas proposed in the book is the importance of constantly analyzing the solution you’re building and asking questions like ‘how maintainable is this solution?’, ‘are we creating new problems for ourselves in the future?’, and ‘when requirements, or external dependencies change, will my code be able to adapt to that new reality?’. The ability to answer these questions is where the true essence of good software engineering lies.
The book provides you with the tools and concepts you need to understand what clean code means beyond any definitions given. It’s a pragmatic, practitioner-oriented book, so I’ve specially focused on how to get things done in an effective way, which often means accepting tradeoffs.
Table of Contents:
Introduction, Code Formatting, and Tools
General Traits of Good Code
The SOLID Principles
Using Decorators to Improve Our Code
Getting More Out of Our Objects with Descriptors
Generators, Iterators, and Asynchronous Programming