🏠 Início
Avaliações
📊 Todos os Benchmarks 🦖 Dinossauro v1 🦖 Dinossauro v2 ✅ Aplicações To-Do List 🎨 Páginas Livres Criativas 🎯 FSACB - Showcase Definitivo 🌍 Benchmark de Tradução
Modelos
🏆 Top 10 Modelos 🆓 Modelos Gratuitos 📋 Todos os Modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de Prompts 📖 Glossário de IA 🔗 Links Úteis
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.