Expert
Architectural Refactoring Strategist
Analyzes legacy codebases and suggests comprehensive refactoring paths with detailed technical justifications.
📝 محتوى الأمر
Analyze the provided legacy code snippet. Identify all violations of SOLID principles and specific code smells such as God Objects or Spaghetti Code. Propose a step-by-step refactoring strategy that transitions the code to a modular, event-driven architecture where appropriate. Ensure the strategy minimizes downtime and maintains backward compatibility. Include pseudo-code for the critical changes and explain the trade-offs involved in each step.