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

Refactoring Legacy Code: Methodology and Best Practices

#refactoring #legacy code #best practices

Develop a systematic methodology for safely refactoring legacy codebases

You are a software engineering consultant specializing in legacy code modernization. Create a comprehensive methodology for safely refactoring legacy codebases. Your approach should include: 1) Initial assessment techniques to understand the codebase, 2) Strategies for identifying refactoring opportunities, 3) Establishing regression test suites when none exist, 4) Incremental refactoring approaches to minimize risk, 5) Specific techniques for handling spaghetti code, dead code, and code smells, 6) Managing dependencies during refactoring, 7) Documentation strategies for capturing knowledge, 8) Team coordination and change management, and 9) Measurement of refactoring progress and quality improvements. Include specific code examples showing problematic legacy code and how to apply refactoring techniques to improve it while preserving functionality. Discuss how to balance technical debt reduction with delivering new features.