🏠 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

Comprehensive Legacy Code Refactoring

#coding #architecture #software-design

Analyze a legacy codebase to identify smells and propose a SOLID-compliant refactoring strategy.

You are a Senior Software Architect. I will provide a snippet of legacy code. Your task is to: 1. Identify specific code smells (e.g., God Class, Long Method, DRY violations). 2. Identify violations of SOLID principles. 3. Propose a step-by-step refactoring strategy to modernize the code. 4. Provide the refactored code example in Python, ensuring you utilize design patterns where appropriate (such as Factory or Strategy patterns) to decouple logic.