Refactor, Optimize, and Test: Crafting Cleaner Python Code - Mohamed Elmaghraby @EuroPythonConference
Refactor, Optimize, and Test: Crafting Cleaner Python Code - Mohamed Elmaghraby  @EuroPythonConference
Uploaded August 2026 | Updated September 2026, 2 weeks ago
[EuroPython 2026 - S4 on 2026-07-17]
🎤 *Refactor, Optimize, and Test: Crafting Cleaner Python Code by Mohamed Elmaghraby*
🔗 https://ep2026.europython.eu/session/refactor-optimize-and-test-crafting-cleaner-python-code

📝 Abstract:
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.

---
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: creativecommons.org/licenses/by-nc-sa/4.0
Refactor, Optimize, and Test: Crafting Cleaner Python Code - Mohamed ElmaghrabySPy: high-level Python, low-level performance, no overhead - Antonio CuniLazy imports and the art of interpreter procrastination - Pablo Galindo Salgado, Noah KimWhen Python Agents Meet 3D: Automating Blender from Natural Language - David RoussetHow Many Spoons Does Your Environment Cost?DuckLake - Take Python and DuckDB for a swim in your data lake - Marc-André LemburgWhats Your Opinion On EuroPython — Sviatoslav SydorenkoEuroPython 2026 Highlights - Day 1Refactoring and Maintaing Software : Building code you wont hate tomorrow — Bojan MileticProgramming hardware displays the easy way - using MicroPython and LVGL — Marc-André LemburgThe Hidden Cost of Complexity: Reducing Cognitive Load in Python - Jarosław ŚmietankaFriendly Borders: Graph algorithms reveal Eurovision voting patterns - Domagoj Marić
EuroPython Conference |

Refactor, Optimize, and Test: Crafting Cleaner Python Code - Mohamed Elmaghraby

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER