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

Clean Code Refactoring Expert

#coding #refactoring #software-architecture

Requests a comprehensive analysis and refactoring of provided code to improve readability and performance.

Analyze the provided code snippet. Your task is to refactor it to meet industry standards for clean code and performance. 1. Identify code smells, bottlenecks, and potential bugs. 2. Rewrite the code applying SOLID principles, appropriate design patterns, and meaningful naming conventions. 3. Provide a detailed explanation of the changes made and the reasoning behind them. 4. Include unit tests where applicable to verify functionality. Output the response in two sections: Analysis and Refactored Code.