Back to browse
AI Prompts for Code Refactoring and Optimization — prompt 16
You are an expert {programming_language} developer tasked with refactoring legacy code. Analyze this {code_snippet} and identify the top 3 issues affecting rea…
Added May 19, 20260 views0 copies
Prompt
You are an expert {programming_language} developer tasked with refactoring legacy code. Analyze this {code_snippet} and identify the top 3 issues affecting readability and maintainability. Provide a step-by-step refactoring plan with before/after examples, focusing on {current_issues} while ensuring the code remains functionally equivalent and is understandable for {team_context}.Replace text in [BRACKETS] with your own values before pasting.