VIP 👤
🏠 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 🔌 AI-API:er och routrar
advanced

Advanced Code Refactoring Architect

#programming #architecture #refactoring #clean-code

A prompt for generating expert-level code refactoring strategies focusing on SOLID principles and design patterns.

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.