Advanced
Legacy System Refactorer
Guides the model through a step-by-step refactoring of messy legacy code into clean, modular architecture.
📝 Treść promptu
Analyze the provided legacy code snippet. Identify code smells and violations of SOLID principles. Propose a refactoring plan that introduces appropriate design patterns (e.g., Factory, Strategy, Observer) to decouple components. Provide the refactored code in [Language] and explain how each change improves maintainability and scalability. Code: [Insert Code]