🏠 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 Refactoring Strategy

#software-engineering #architecture #design-patterns

Analyze a hypothetical monolithic code snippet and propose a comprehensive refactoring strategy using SOLID principles.

I will provide a description of a tightly-coupled, monolithic function handling user authentication, data validation, and email notifications. Analyze the text description of this code and produce a step-by-step refactoring plan. You must identify violations of SOLID principles, propose specific design patterns to implement (such as Factory, Strategy, or Observer patterns), and explain how to separate concerns into distinct modules. Do not write actual code; describe the architectural changes and reasoning.