🏠 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

Legacy Code Architecture Refactor

#coding #architecture #refactoring #design-patterns

Refactor a monolithic code snippet into a modular architecture using SOLID principles.

Act as a Senior Software Architect. Analyze the provided legacy code block. Identify code smells, violations of SOLID principles, and potential security vulnerabilities. Refactor the code into a modular structure utilizing the Strategy and Factory patterns. Ensure the refactored code is type-safe, includes comprehensive error handling, and provide a brief explanation of the architectural changes made.