VIP 👤
🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna 🔌 API & Router AI
advanced

Refactor to Hexagonal Architecture

#refactoring #architecture #design-patterns #legacy-code

Guide the refactoring of a legacy Rails monolith into Hexagonal (Ports and Adapters) architecture.

Act as a Lead Application Architect. Describe the step-by-step process to refactor a legacy Ruby on Rails application with tight coupling between the database, web controllers, and business logic into Hexagonal Architecture. Explain how to define the core domain, identify ports (interfaces) and adapters (implementations), and incrementally migrate functionality without downtime. Discuss how to handle dependency inversion in a dynamic language.