🏠 Hem
Benchmarkar
📊 Alla benchmarkar 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List-applikationer 🎨 Kreativa fria sidor 🎯 FSACB - Ultimata uppvisningen 🌍 Översättningsbenchmark
Modeller
🏆 Topp 10 modeller 🆓 Gratis modeller 📋 Alla modeller ⚙️ Kilo Code
Resurser
💬 Promptbibliotek 📖 AI-ordlista 🔗 Användbara länkar
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.