🏠 홈
벤치마크
📊 모든 벤치마크 🦖 공룡 v1 🦖 공룡 v2 ✅ 할 일 목록 앱 🎨 창의적인 자유 페이지 🎯 FSACB - 궁극의 쇼케이스 🌍 번역 벤치마크
모델
🏆 톱 10 모델 🆓 무료 모델 📋 모든 모델 ⚙️ 킬로 코드 모드
리소스
💬 프롬프트 라이브러리 📖 AI 용어 사전 🔗 유용한 링크
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.