Advanced
Refactor Spaghetti Code Architecture
Develop a comprehensive strategy to decouple a monolithic legacy codebase.
📝 Prompt Inhoud
Analyze a hypothetical legacy codebase characterized by global state variables, circular dependencies, and God Objects. Outline a step-by-step refactoring roadmap to transition this architecture to a modular, dependency-injected structure. Specifically, detail how to introduce the Strategy pattern to replace large conditional logic blocks without breaking existing functionality.