🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
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.