🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles
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.