PyConMY 2025

PyConMY 2025

[Orsted] From Chaos to Catalog: Refactor with Registry Pattern
2025-11-01 , Hall 1

Discover the Registry pattern: a lightweight catalog mapping identifiers to implementations at runtime.


Registry pattern replaces switch/if ladders and brittle dictionaries, enables modular plugins, and streamlines discovery, configuration, and testing. We’ll refactor an existing tool using the Registry pattern, spotlighting common anti‑patterns so you can build extensible, decoupled systems that evolve safely without rewrites. We’ll also review popular Python libraries that leverage this pattern to organize their code effectively.

Amirah is a former Full-Stack .NET developer who transitioned into Python and quickly embraced the art of clean, maintainable code. She sees refactoring not as rework, but as a path to performance, reliability, and developer well-being. In her current role, she focuses on improving code quality and maintainability by simplifying dependencies, applying SOLID principles, and ensuring logic resides in the right layer. For Amirah, code cleanup is about building software that is sustainable, scalable, and a joy to work with.