🏠 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

Refactor Monolithic Code to Hexagonal Architecture

#refactoring #software-architecture #clean-code

Analyze a legacy code snippet and restructure it into a hexagonal architecture pattern, identifying SOLID violations.

Act as a Senior Software Architect. Analyze the following legacy code snippet [INSERT CODE]. Identify all code smells, violations of SOLID principles, and tightly coupled dependencies. Refactor this code into a Hexagonal (Ports and Adapters) Architecture. Provide the refactored code in the same language, explain the separation of concerns between the domain, application, and infrastructure layers, and define the interfaces for the ports.