VIP 👤
🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة 🔌 واجهات API والموجّهات
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.