VIP 👤
🏠 Ana Sayfa
Benchmarklar
📊 Tüm Benchmarklar 🦖 Dinozor v1 🦖 Dinozor v2 ✅ To-Do List Uygulamaları 🎨 Yaratıcı Serbest Sayfalar 🎯 FSACB - Nihai Gösteri 🌍 Çeviri Benchmarkı
Modeller
🏆 En İyi 10 Model 🆓 Ücretsiz Modeller 📋 Tüm Modeller ⚙️ Kilo Code
Kaynaklar
💬 Prompt Kütüphanesi 📖 YZ Sözlüğü 🔗 Faydalı Bağlantılar 🔌 Yapay Zeka API'leri ve Yönlendiriciler
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.