For years, I heard about how important it was to reactor code, but no one I worked with could explain how to refactor code, when to do it, or what to refactor.
Looking for answers, I found out that developers have spent decades refining step-by-step refactoring methods, allowing you to improve the quality of your code without changing what it does. Unfortunately, these techniques were created for languages like C and Java, which are not as flexible as python.
I spent a long time researching, translating, and comparing what experts had to say to understand refactoring.
I want to help expedite that process for you.
This toolkit translates the “traditional” refactoring practices into modern python, adds a few python-specific methods, and gives you a get-out-of-jail-free technique that is easy to remember and can help you if you don’t have the refactoring techniques handy.
Hey there! I’m the author behind the Python Refactoring Toolkit.
I’ve been programming in python for over a decade and co-founded the python user group in Richmond, Virginia (PyRVA) in 2015.
A few times in my python journey, learning a new skill made me feel like I had superpowers. It’s a fantastic feeling, and I want you to have that feeling and the confidence that you can create quality code to accomplish anything.Follow Chris on Twitter
These patterns help you identify parts of your code that can be improved.
Each method includes a step-by-step guide to improve your code without altering what it does and ruining your day! Each is focused on modern python development.
Quick rescue technique
An easy-to-remember technique for refactoring your code without remembering the specifics of any refactoring method.
Enhanced for Obsidian
Obsidian is a powerful, free program that brings this toolkit to life. It offers a quick and powerful search, linked documents, note-taking enhancements, and many other features.
Included in the toolkit is access to the Everyday Superpowers community on Discord. Many helpful python experts, including the author of this toolkit, are available to help you grow.
With this toolkit, your python code is quickly going to become better, and you’re going to be more confident.
The Python Refactoring Toolkit
Get your employer to pay for it
This resource is going to pay many dividends for you and your team, so why not have your company purchase it for you or your team! Many companies will purchase it for you or reimburse you for it.
The toolkit cost could be recouped in two weeks: