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

EuroPython Conference
335 views •

[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: https://creativecommons.org/licenses/by-nc-sa/4.0/

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close