Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds

Free eBook - Clean Code in Python - Second Edition

4.6 (34 reviews total)
By Mariano Anaya
  • A new free eBook every day on the latest in tech
  • 30 permanently free eBooks from our core tech library
  1. Introduction, Code Formatting, and Tools
About this book
Experienced professionals in every field face several instances of disorganization, poor readability, and testability due to unstructured code. This second edition has been updated to reflect new best practices in Python 3.9, helping developers write professional, scalable, and maintainable code. It introduces advanced object-oriented design, decorators, descriptors, and refactoring strategies using SOLID principles. Whether modernizing legacy projects or building new applications, this book provides practical techniques to write cleaner and more efficient Python code using the Python standard library and manage your projects successfully. The book begins by describing the basic elements of writing clean code and how it plays a key role in Python programming. The book discusses object-oriented programming in Python and show you the design principles of software testing and how to resolve problems by implementing software design patterns in your code. In the concluding chapter, we break down a monolithic application into a microservices-based one starting from the code as the basis for a solid platform. By the end of this clean code book, you will be proficient in applying industry-approved coding practices to design clean, sustainable, and readable real-world Python code.
Publication date:
January 2021
Publisher
Packt
Pages
422
ISBN
9781800560215

About the Author
  • Mariano Anaya

    Mariano Anaya is a software engineer who spends most of his time creating software with Python and mentoring fellow programmers. Mariano's principal areas of interest besides Python are software architecture, functional programming, distributed systems, and speaking at conferences. He was a speaker at Euro Python 2016 and 2017. To know more about him, you can refer to his GitHub account with the username rmariano. His speakerdeck username is rmariano.

    Browse publications by this author
Latest Reviews (34 reviews total)
To be transparent I was offered a review copy of the book without any stipulations about what kind of review I would offer after reviewing the material - and I certainly don't default to a five-star review and work down. This book has earned it.When you read a title like Clean Code in [insert language here] you expect that you're going to hear about the SOLID principles and some examples of The Right Way™ to do things. That would be a fairly short book and something you could get from reading Python documentation and a few blog posts.This book's coverage includes that but it hits every other "good code" topic from formatting to testing and everything in between. If you could buy one book to prep for an interview where Python was the focus this would be an excellent option. The code samples make sense, the content builds in the right order, and you never feel like the author is trying to bend you to their way of doing things. It's simply - do it this way, avoid these problems. Do it this way, gain this benefit.You couldn't ask for a better Python tour guide than Mariano Anaya.
Read better
This os a great book for someone who wants to explore the Python language and has some prior programming experience.The book takes you on a journey starting from setting up the development environment using correct tools and giving a nice detailed walkthrough for better use of the tools and the language.This book emphasizes on Pythonic way of writing code along with some best practices which are not mentioned in other books i have read. The best principles discussed in the book are presented nicely to give readers an idea of the correct way to write python code.This book also covers unit testing frameworks and some common design principles used in Python.Overall, this book is exceptionally written and content is easy to understand and keeps you motivated right through the end.I would highly recommend this book to anyone who is interested in learning more about Python and correct usage of the language and the tools.
Recommended For You
Expert Python Programming - Fourth Edition

Attain a deep understanding of building, maintaining, packaging, and shipping robust Python applications

By Michał Jaworski and 1 more
Python Data Cleaning Cookbook

Discover how to describe your data in detail, identify data issues, and find out how to solve them using commonly used techniques and tips and tricks

By Michael Walker
Data Engineering with Python

Build, monitor, and manage real-time data pipelines to create data engineering infrastructure efficiently using open-source Apache projects

By Paul Crickard
Mastering Python for Networking and Security - Second Edition

Tackle security and networking issues using Python libraries such as Nmap, requests, asyncio, and scapy

By José Manuel Ortega