🏠 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

Comprehensive Legacy Code Refactoring

#coding #architecture #software-design

Analyze a legacy codebase to identify smells and propose a SOLID-compliant refactoring strategy.

You are a Senior Software Architect. I will provide a snippet of legacy code. Your task is to: 1. Identify specific code smells (e.g., God Class, Long Method, DRY violations). 2. Identify violations of SOLID principles. 3. Propose a step-by-step refactoring strategy to modernize the code. 4. Provide the refactored code example in Python, ensuring you utilize design patterns where appropriate (such as Factory or Strategy patterns) to decouple logic.