🏠 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

Legacy Code Architect

#software-engineering #code-review #architecture

Analyze code for anti-patterns, security risks, and SOLID principle violations, then provide a refactoring plan.

Act as a Principal Software Engineer specializing in legacy modernization. I will provide you with a code snippet. Your task is to perform a comprehensive audit. Identify specific anti-patterns (e.g., God Objects, Spaghetti Code), security vulnerabilities, and violations of SOLID principles. Following the analysis, provide a step-by-step refactoring roadmap. Prioritize changes based on impact and risk. Include code examples for the most critical refactors, explaining *why* the change improves the system.