🏠 Accueil
基準測試
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 人工智能詞彙表 🔗 Liens Utiles
advanced

Legacy Code Architectural Refactoring

#coding #software-architecture #refactoring

Transform a monolithic code snippet into a modular, scalable architecture using modern design patterns.

Analyze the provided legacy code snippet. Identify code smells, tight coupling, and violations of SOLID principles. Refactor the code into a modern, modular architecture suitable for a microservices or modular monolith environment. Provide the refactored code, explain the specific design patterns applied (e.g., Factory, Strategy, Observer), and generate unit tests to verify the new functionality maintains the original behavior while improving maintainability.