Sponsored
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy New
$48.99
FREE delivery Monday, May 4
Ships from: Amazon.com
Sold by: Amazon.com
$48.99
FREE delivery Monday, May 4
Or Prime members get FREE delivery Friday, May 1. Order within 5 hrs 15 mins. Join Prime
In Stock
$$48.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$48.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$7.52
Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less See less
FREE delivery May 7 - 11. Details
In stock
$$48.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$48.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by ThriftBooks-Phoenix.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

  • Clean Code in Python: Refactor your legacy code base

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Clean Code in Python: Refactor your legacy code base

4.3 out of 5 stars (23)

{"desktop_buybox_group_1":[{"displayPrice":"$48.99","priceAmount":48.99,"currencySymbol":"$","integerValue":"48","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"DY%2BpoN%2Bmkpo8Au1zdd8jExClPpJCP3qgHq%2FjO1aC2AS%2FBBX6UCtITDF9cb8ItQFlG0Rptkz95opnrKl%2Fv4ChV%2Fqlv1kpGIL2N7QlLY6bKFN9KLUyrsiLG1wb6j0afAjTEW30vkrUMAXUG9ip2TVyUQ%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$7.52","priceAmount":7.52,"currencySymbol":"$","integerValue":"7","decimalSeparator":".","fractionalValue":"52","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"DY%2BpoN%2Bmkpo8Au1zdd8jExClPpJCP3qgXJgSDe50MxN22LQz4hKST%2FNe7aI7ue3fShH7ilUBVw8gFmLm3pSXEXHw0ldGBv0f0RwtFbIs9gZNmVs2knOc8n97CCtY%2FZ9mxlgWkr8p7ImH%2BKZ1wSugE5gK15UnMHsOAe0s7RuLXheVKDKvdfiyruBJ33%2BRxYSG","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

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

There is a newer edition of this item:

Sponsored

Frequently bought together

This item: Clean Code in Python: Refactor your legacy code base
$48.99
Get it as soon as Monday, May 4
In Stock
Ships from and sold by Amazon.com.
+
$57.99
Get it as soon as Monday, May 4
In Stock
Ships from and sold by Amazon.com.
+
$40.49
Get it as soon as Monday, May 4
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

Editorial Reviews

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 main areas of interests 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.

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: #2,299,677 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.3 out of 5 stars (23)

About the author

Follow authors to get new release updates, plus improved recommendations.
Mariano Anaya
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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.

Sponsored

Customer reviews

4.3 out of 5 stars
23 global ratings
Sponsored

Top reviews from the United States

  • 5 out of 5 stars
    Birthday Present
    Reviewed in the United States on August 28, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I was very happy with the product. Thank you ☺️

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    If you are looking to move beyond code cookbooks
    Reviewed in the United States on January 12, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    With so many Python books out there it’s hard to know which are worthwhile, particularly if you want to move beyond basics. This book is highly recommended for this category of Python programmer. It’s a must read for people working in agile development teams. It is well organized and written, containing material not treated elsewhere, or at least not in a single volume. Writing clean code goes beyond “having good documentation”. At a certain point this good documentation becomes more of a distraction than anything, particularly in Python. Well written Python should be the documentation minimalist’s dream and that is the main idea throughout this book: how to write efficient, properly documented Python code that is easily maintainable, by ourselves and other developers. The authors are not simply talking about code linting or analyzers, it’s more like the Zen of Python. They include examples of moving from some code to better code. The focus is on the readability of code since so many developers spend their time reading scads of code to add a simple feature, but there are also many examples of interesting ways to get things done in Python.

    7 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

  • 5 out of 5 stars
    Nice book, great content - lack of examples
    Reviewed in Brazil on November 1, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book is great to improve OOP skills in Python. It gives you a view about what can be done in Python and good practices to follow when programming in Python. Also, the way the author involve while you are reading the book is very good and the pieces fit together nicely. My concern about the book is the lack of examples, don't get me wrong, the book has a good level of code, but I think that examples should be more didactic. Some of them, I needed to read and re-read several times to understand and get the idea.

    Anyway, is a great book and I really recommend it.

    Sending feedback...
    Thanks, we'll investigate in the next few days.