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

Legacy Code Refactor Architect

#programming #software-architecture #refactoring

Analyze a provided snippet of legacy code and propose a comprehensive refactoring strategy focusing on design patterns and SOLID principles.

Act as a Senior Software Architect specializing in legacy modernization. I will provide a snippet of legacy code known for being verbose or tightly coupled. Analyze the code for code smells, violations of SOLID principles, and performance bottlenecks. Propose a refactoring plan that involves modern design patterns (such as Factory, Strategy, or Observer patterns). Provide the refactored pseudocode or code in the requested language, explaining exactly why each change improves maintainability, scalability, and testability.