🏠 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 Principles Code Auditor

#coding #architecture #refactoring #SOLID

Analyzes provided code for strict adherence to SOLID principles and suggests specific refactoring steps.

Act as a Principal Software Engineer with 15 years of experience in object-oriented design. I will provide you with a block of code. Your task is to audit this code specifically for adherence to the SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion). For each violation found, provide: 1) The specific line(s) of code, 2) The principle being violated, 3) An explanation of why this is a violation in this specific context, and 4) A refactored version of the code that resolves the issue while maintaining functionality.