In software development messy code is inevitable. We have to deal daily with old code that has not been touched for years, refactoring allows us to keep the code maintainable, easy to extend without altering its functionality and it plays a crucial role in enhancing maintainability and performance.
Abstract: “Refactor, Optimize, and Test: Crafting Cleaner Python Code”
In software development, messy, outdated, or inefficient code is inevitable. We have to deal daily with old code that has not been touched for years, refactoring allows us to keep the code maintainable and easy to extend without altering its functionality, and it plays a crucial role in enhancing maintainability, readability, and performance.
This session explores the how, when, and why of code refactoring with code smell examples, coupled with practical insights on performance profiling techniques, tools and how it affects Refactoring. Also exploring how testing is very crucial when it comes to Refactoring.
Whether you’re dealing with legacy code or looking to enhance your development workflows, this talk equips you with the tools and techniques to write cleaner, more efficient Python code.
This session is inspired by Martin Fowler’s seminal works on refactoring and Python-specific insights shared at EuroPython 2024.
I am a Senior Software Engineer at Bloomberg with five years of engineering experience, including three focused on building and optimizing trading systems in Python. My work centers on system design, refactoring, and performance tuning—turning legacy or complex code into reliable, maintainable, and fast systems. I delivered a couple talks at internal engineering conferences, sharing my experiences with code improvement and optimization workflows. When I am not writing code (much of the time 🙂) I enjoy hiking, shooting and riding horses.