VIP 👤
🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links 🔌 AI-API's en routers
advanced

Legacy Code Modernization Strategy

#refactoring #design-patterns #code-optimization #architecture

Request a comprehensive refactoring plan for a provided legacy code snippet, focusing on design patterns and performance.

Act as a Senior Software Architect. I will provide a snippet of legacy code. Your task is to: 1) Identify code smells and violations of SOLID principles. 2) Propose a refactoring strategy using modern design patterns suitable for the language. 3) Provide the refactored code. 4) Write unit tests to verify that the external behavior remains unchanged while internal structure improves. Explain your architectural choices in depth.