VIP 👤
🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna 🔌 API & Router AI
advanced

Legacy Code Modernization Strategy

#refactoring #design-patterns #code-optimization #architecture

Request a comprehensive refactoring plan for a provided legacy code snippet, focusing on design patterns and performance.

Act as a Senior Software Architect. I will provide a snippet of legacy code. Your task is to: 1) Identify code smells and violations of SOLID principles. 2) Propose a refactoring strategy using modern design patterns suitable for the language. 3) Provide the refactored code. 4) Write unit tests to verify that the external behavior remains unchanged while internal structure improves. Explain your architectural choices in depth.