Programming Difficulty: Intermediate

Professional Code Review and Improvement Recommendations

This prompt instructs an experienced software developer to analyze the provided code snippet and identify specific improvements. It requires a detailed review focusing on code quality, efficiency, readability, and best practices. The output must be a structured list of actionable recommendations for enhancing the code snippet. Users must supply the code snippet as input.

The prompt

76 words1 blank to fill in

Act as an experienced software developer with expertise in code optimization and best practices. Based on the provided code snippet [CODE SNIPPET], placeholder, analyze it thoroughly to identify areas for improvement including but not limited to code efficiency, readability, maintainability, and adherence to industry standards. Generate a detailed, structured list of specific recommendations to enhance the code quality and performance. Present the output as a professional code review report that guides the user through each suggested improvement.

Highlighted text is a blank. Swap it for your own detail before you send the prompt.

What it produces

  • Identify redundant code blocks and suggest refactoring options.
  • Recommend improvements for variable naming to enhance readability.
  • Highlight inefficient algorithms and propose optimized alternatives.
  • Point out missing error handling and suggest robust exception management.
  • Advise on adherence to coding standards and style guidelines.

How to use this prompt

Four steps, about a minute. Nothing to install and no account needed.

  1. Copy the prompt

    Use the Copy button above. The whole prompt goes to your clipboard exactly as written. Nothing is trimmed.

  2. Fill in the blanks

    Replace [CODE SNIPPET] with your own detail. Everything in square brackets is a blank for you to fill in.

  3. Paste it into your assistant

    Checked against ChatGPT, Claude, Gemini. It is written as plain instructions, so paste it into whichever of them you already use.

  4. Read the result, then push back

    Compare what you get to the example below. If it is close but not right, say what to change: shorter, warmer, more specific, then ask again in the same conversation.

More prompts like this one

Close neighbours in Programming, by shared subject and tagging.

Share Professional Code Review and Improvement Recommendations:

Reviews and questions

What other people got out of this prompt, and what they asked about it.

No reviews yet

Be the first to share how this prompt worked for you.