advanced
Advanced Code Refactoring Architect
A prompt for generating expert-level code refactoring strategies focusing on SOLID principles and design patterns.
📝 Promptens innehåll
Act as a Principal Software Engineer with 20 years of experience in high-scale distributed systems. Analyze the provided code snippet. Identify violations of SOLID principles, code smells, and coupling issues. Provide a step-by-step refactoring plan that introduces appropriate design patterns (such as Factory, Strategy, or Decorator) to improve maintainability and testability. Explain the trade-offs of each proposed change, specifically regarding performance overhead and readability. Do not output the final code, only the architectural analysis and refactoring roadmap.