The Art of Code Refactoring in Python

Speaker: Shiva Bhusal

Track: Other

Type: Remote Talk

Code refactoring is the process of restructuring existing code without changing its external behavior, thus improving the quality, readability, and maintainability of code. In this talk, we will explore the art of code refactoring in Python, including best practices, common techniques, and tools that can help make the process easier and more efficient.

We will begin by discussing the importance of code refactoring and the principles outlined in the Zen of Python. We will then delve into specific techniques for refactoring Python code, such as extracting methods, renaming variables, and simplifying conditional expressions. We will also explore tools such as pylint and black that can help automate some aspects of the refactoring process.

Throughout the talk, we will use real-world examples to illustrate the concepts and techniques discussed. I hope, after the talk, the attendees will have a deeper understanding of the art of code refactoring in Python, and knowledge that they can apply to their own projects.

Python Software Foundation
Thinkst Canary Afrolabs