DEV Community

Discussion on: How Do You Handle Legacy Code When Starting a New Project?

Collapse
 
c0mmand3rj profile image
James Batista • Edited

Here are some steps or points that I follow when dealing with legacy code under a tight schedule:

1. Prioritize: Identify the most critical areas of the codebase that require immediate attention.
2. Conduct a code audit: Review the codebase's critical areas to identify any issues that may impact the project's timelines or functionality.
3. Focus on critical areas: Focus your efforts on the most critical areas, rather than getting bogged down in every detail.
4. Leverage automated tools: Use automated tools and frameworks to analyze the codebase and identify potential areas of improvement. (For Examples: Linters, Refactor tools, etc...)
5. Seek input: Seek input from other developers to ensure that you're focusing on the most critical areas and using the right tools. (You're doing that now! :))

Miket

6. Ensure documentation: Document the codebase well for future maintenance and further development.

Collapse
 
c0mmand3rj profile image
James Batista

Its the nature of the beast. We all face the Legacy monster at some point in our careers. We just get better at it the more we do it.