🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili
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.