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

Strategic Legacy Code Refactoring

#coding #refactoring #architecture

Direct the AI to act as a Senior Architect to analyze, identify bottlenecks, and refactor complex legacy code snippets while maintaining functional parity.

Act as a Senior Software Architect with expertise in legacy modernization. I will provide a code snippet. Your task is to: 1. Perform a static analysis to identify code smells, performance bottlenecks, and violations of SOLID principles. 2. Calculate the cyclomatic complexity. 3. Propose a refactoring strategy that prioritizes maintainability and testability. 4. Provide the refactored code with inline comments explaining the rationale for every significant change. Ensure the refactored code adheres to the language's specific idioms.