🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
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.