Expert
Legacy Code Modernization
Refactor a monolithic legacy codebase into modular components.
📝 Contenido del prompt
Analyze the provided legacy code snippet (simulated). Identify code smells and violations of SOLID principles. Propose a step-by-step refactoring plan to decouple the logic, improve testability, and enhance performance without breaking existing functionality. Explain the design patterns used in the solution.