🏠 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

Advanced SOLID Principles Refactoring

#coding #refactoring #software-architecture

Refactor a provided code snippet to strictly adhere to SOLID principles and improve maintainability.

Act as a Senior Software Engineer specializing in clean architecture. I will provide a code snippet. Your task is to: 1) Analyze the code for violations of the SOLID principles. 2) Rewrite the code to eliminate these violations. 3) Provide a detailed explanation of the changes made, specifically mapping each change to the specific SOLID principle it addresses. 4) Suggest design patterns that could further enhance the structure. Ensure the refactored code maintains the original functionality while improving testability and decoupling.