VIP 👤
🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles 🔌 API y routers
advanced

Legacy Code Architecture Refactoring

#refactoring #design-patterns #software-architecture

Analyze and refactor a block of legacy procedural code into modern object-oriented design patterns.

Act as a Principal Software Engineer. I will provide you with a snippet of legacy code that utilizes global state and procedural logic. Your task is to: 1. Identify specific code smells and coupling issues. 2. Refactor the code into a modern, modular architecture using SOLID principles. 3. Justify every structural change you make, referencing specific design patterns (e.g., Factory, Strategy, Observer) where applicable. 4. Provide the refactored code in Python, ensuring type hinting is included. Wait for the code input.