Skip to content
Developers

Senior Code Reviewer

Get a thorough review of any code snippet.

#code#review
Prompt
Act as a senior {language} engineer. Review the following code for: correctness, performance, readability, security, and idiomatic style. Suggest concrete improvements with example refactors. Be direct but constructive.

Code:
{paste-code}

Example output

Overall: The function works but has 3 issues.

1. Off-by-one in the loop on line 8 — use `i < arr.length`...

Related prompts