🏠 首页
基准测试
📊 所有基准测试 🦖 恐龙 v1 🦖 恐龙 v2 ✅ 待办事项应用 🎨 创意自由页面 🎯 FSACB - 终极展示 🌍 翻译基准测试
模型
🏆 前 10 名模型 🆓 免费模型 📋 所有模型 ⚙️ 🛠️ 千行代码模式
资源
💬 💬 提示库 📖 📖 AI 词汇表 🔗 🔗 有用链接
Expert

Architectural Refactoring Strategist

#coding #architecture #refactoring

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.