Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon.com Sold by: Amazon.com
Used - Very Good
-
To see product details, add this item to your cart.
Ships from: Goodwill of Silicon Valley Sold by: Goodwill of Silicon Valley
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Clean Code in Python: Refactor your legacy code base
Purchase options and add-ons
Getting the most out of Python to improve your codebase
Key Features
- Save maintenance costs by learning to fix your legacy codebase
- Learn the principles and techniques of refactoring
- Apply microservices to your legacy systems by implementing practical techniques
Book Description
Python is currently used in many different areas such as software construction, systems administration, and data processing.
In all of these areas, experienced professionals can find examples of inefficiency, problems, and other perils, as a result of bad code. After reading this book, readers will understand these problems, and more importantly, how to correct them.
The book begins by describing the basic elements of writing clean code and how it plays an important role in Python programming. You will learn about writing efficient and readable code using the Python standard library and best practices for software design. You will learn to implement the SOLID principles in Python and use decorators to improve your code. The book delves more deeply into object oriented programming in Python and shows you how to use objects with descriptors and generators. It will also show you the design principles of software testing and how to resolve software problems by implementing design patterns in your code. In the final chapter we break down a monolithic application to a microservice one, starting from the code as the basis for a solid platform.
By the end of the book, you will be proficient in applying industry approved coding practices to design clean, sustainable and readable Python code.
What you will learn
- Set up tools to effectively work in a development environment
- Explore how the magic methods of Python can help us write better code
- Examine the traits of Python to create advanced object-oriented design
- Understand removal of duplicated code using decorators and descriptors
- Effectively refactor code with the help of unit tests
- Learn to implement the SOLID principles in Python
- ISBN-101788835832
- ISBN-13978-1788835831
- PublisherPackt Publishing
- Publication dateAugust 29, 2018
- LanguageEnglish
- Dimensions7.5 x 0.75 x 9.25 inches
- Print length332 pages
Frequently bought together

Frequently purchased items with fast delivery
- Design Patterns and Best Practices in Rust: Enhance your Rust skills by applying idiomatic approaches to real-world software designPaperbackFREE Shipping by AmazonGet it as soon as Friday, Sep 18
- Rust for Rustaceans: Idiomatic Programming for Experienced DevelopersPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Friday, Sep 18
- Programming Rust: Fast, Safe Systems DevelopmentPaperbackFREE Shipping by AmazonGet it as soon as Friday, Sep 18
- FastAPI: Modern Python Web DevelopmentPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Friday, Sep 18Only 11 left in stock (more on the way).
- Fluent Python: Clear, Concise, and Effective ProgrammingPaperbackFREE Shipping by AmazonGet it as soon as Friday, Sep 18
- Powerful Python: Patterns and Strategies with Modern PythonPaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20Only 2 left in stock (more on the way).
Customers also bought or read
- Python Programming Blueprints: Build nine projects by leveraging powerful frameworks such as Flask, Nameko, and Django
Paperback$57.99$57.99FREE delivery Fri, Sep 18 - Learn Python Programming: The no-nonsense, beginner's guide to programming, data science, and web development with Python 3.7
Paperback$20.99$20.99Delivery Fri, Sep 18 - Functional Python Programming: Discover the power of functional programming, generator functions, lazy evaluation, the built-in itertools library, and monads, 2nd Edition
Paperback$51.72$51.72FREE delivery Fri, Sep 18 - Python 3: The Comprehensive Guide to Hands-On Python Programming (Rheinwerk Computing)
Paperback$53.79$53.79FREE delivery Fri, Sep 18 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Sep 29 - Oct 17 - Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python#1 Best SellerSpeech & Audio Processing
Paperback$36.05$36.05FREE delivery Fri, Sep 18 - Modern Python Cookbook: 130+ updated recipes for modern Python 3.12 with new techniques and tools
Paperback$42.79$42.79FREE delivery Fri, Sep 18 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$27.53$27.53Delivery Fri, Sep 18 - Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners
Paperback$21.61$21.61Delivery Fri, Sep 18 - Mastering PyTorch: Create and deploy deep learning models from CNNs to multimodal models, LLMs, and beyond
Paperback$34.58$34.58Delivery Fri, Sep 18 - Python All-in-One For Dummies (For Dummies: Learning Made Easy)
Paperback$24.77$24.77Delivery Fri, Sep 18
Editorial Reviews
About the Author
Product details
- Publisher : Packt Publishing
- Publication date : August 29, 2018
- Language : English
- Print length : 332 pages
- ISBN-10 : 1788835832
- ISBN-13 : 978-1788835831
- Item Weight : 1.26 pounds
- Dimensions : 7.5 x 0.75 x 9.25 inches
- Best Sellers Rank: #1,934,591 in Books (See Top 100 in Books)
- #1,400 in Enterprise Applications
- #1,794 in Python Programming
- #3,725 in Computer Programming Languages
- Customer Reviews:
About the author

Mariano Anaya is a software engineer who spends most of his time creating software solutions with Python, and mentoring fellow programmers. Mariano's main areas of interests besides Python are Linux, software architecture, functional programming, distributed systems, and speaking at conferences.
Mariano has many years of experience with Python. He has been a speaker at Euro Python 2016 and 2017, and FOSDEM 2019, and is actively participating in the Python community events.
In the past, he has been a teacher assistant at UTN (his alma mater) and whilst now he lives in Barcelona, his passion for teaching still drives his career in different ways.















