🏠 Accueil
Benchmarks
📊 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 📖 Glossaire IA 🔗 Liens Utiles
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.