🏠 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
Advanced

Legacy Code Architecture Refactor

#coding #architecture #refactoring #design-patterns

Refactor a monolithic code snippet into a modular architecture using SOLID principles.

Act as a Senior Software Architect. Analyze the provided legacy code block. Identify code smells, violations of SOLID principles, and potential security vulnerabilities. Refactor the code into a modular structure utilizing the Strategy and Factory patterns. Ensure the refactored code is type-safe, includes comprehensive error handling, and provide a brief explanation of the architectural changes made.