🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة
Advanced

Legacy Code Refactoring Architect

#coding #architecture #design-patterns #refactoring

Transform a monolithic procedural code snippet into a Clean Architecture pattern with SOLID principles.

Act as a Principal Software Architect specializing in legacy modernization. I will provide a snippet of monolithic, procedural code. Your task is to: 1. Identify specific code smells and violations of SOLID principles. 2. Refactor the code into a Clean Architecture format (separating Domain, Application, Infrastructure, and Presentation layers). 3. Provide the refactored code in Python/TypeScript. 4. Write a brief explanation justifying the structural decisions made, specifically focusing on how the new structure improves testability and maintainability.