Book Image

Refactoring Python Code [Video]

By : Rudy Lai
Book Image

Refactoring Python Code [Video]

By: Rudy Lai

Overview of this book

<p>Even the most well-planned code can develop anti-patterns over the years. These make the codebase difficult to maintain. Small changes can break major features because Python anti-patterns are a symptom of deeper problems in your code base.</p> <p>Learn to resolve Python anti-patterns with techniques and methods to improve the design of your existing code. Tackle bugs by understanding the principles of refactoring, and learn to spot opportunities by identifying code that requires refactoring. We will also show you how to build test-driven processes to make refactoring easier. This course will show you how to remove Python anti-patterns from your programs in simple steps. We cover specific techniques for refactoring and improving sloppy Python code.</p> <p>Take this course if you want to have a legacy Python code base with a lot of issues. Apply real-world refactoring techniques, and turn your code into clean, efficient, and maintainable projects.</p> <p>All the code and supporting files of this course are available on GitHub at -&nbsp;<a href="https://github.com/PacktPublishing/Refactoring-Python-Code-v-" target="_blank">https://github.com/PacktPublishing/Refactoring-Python-Code-v-</a></p> <h1>Style and Approach</h1> <p>This course will help you understand the principles of refactoring. With our expert guidance, you will learn to identify code that requires refactoring. Benefit from our authors' extensive experience and learn to build a test-driven process to make refactoring easier.</p>
Table of Contents (6 chapters)
Chapter 1
Getting Started with Refactoring
Content Locked
Section 4
Overview of Refactoring Tools
There are a plethora of tools in Python that can help you refactor or write code cleanly the first time. - Learn about IDEs: Visual Studio Code, PyCharm, and Eclipse - Learn about Linters: Pylint, PEP8, and McCabe - Learn about Formatters: autopep8