🏠 होम
बेंचमार्क
📊 सभी बेंचमार्क 🦖 डायनासोर 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.