A prompt to clean up and optimize legacy code.
Refactor code prompt: Language: {LANGUAGE} Current code snippet: ``` {CODE} ``` Goal: {GOAL} (Readability/Performance/DRY) Provide: 1. Refactored code 2. Explanation of changes 3. Complexity reduction analysis (Big O) 4. Potential trade-offs
Nilesh Raut
View Profile →
code-assistance
Browse all prompts →
ChatGPT
Claude