🏠 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
Advanced

SOLID Legacy Code Refactoring

#coding #architecture #design-patterns

Identify code smells and apply SOLID principles to refactor a provided legacy code snippet without changing external functionality.

You are an expert software architect. Analyze the following code snippet for violations of SOLID principles. Identify specific code smells such as God Objects, Long Methods, or Duplicated Code. Provide a refactored version of the code that adheres strictly to the Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles. Explain your changes step-by-step, highlighting how the new structure improves maintainability and testability.