RateMyPrompt

RateMyPrompt

Discover and share the best AI prompts, rated by AI & humans

[RMP Optimized] code review

7.0/10Overall
7.0AI
No user ratings
Optimized from: code review
Submitted Aug 8AI evaluated Aug 8

Prompt

Please provide a clear and efficient solution to the following coding task: [insert specific coding task here]. Your solution should prioritize minimal modifications to the existing code while ensuring functionality and performance. Consider the following edge cases: [insert relevant edge cases]. Include detailed comments in your code to explain your logic, assumptions, and any decisions made during implementation. The final solution should be well-structured, easy to read, and maintainable. Additionally, please include a brief explanation of how your solution handles the specified edge cases and any potential errors that may arise.

Optimization Improvements

  • Enhanced clarity by explicitly stating the need for a brief explanation of edge case handling.
  • Structured the prompt to separate different requirements for better readability.
  • Emphasized the importance of comments for logic and assumptions, making it actionable.
  • Included a request for error handling considerations to address potential issues.
  • Specified the need for a well-structured solution to improve maintainability.

The optimized prompt improves clarity and specificity by breaking down requirements into distinct sections, ensuring that the coder understands the expectations clearly. It also emphasizes the importance of edge case handling and error management, which are critical for robust code generation.

AI Evaluation

How we evaluate
Claude 3 Haiku
AI Evaluation
7.5/10
GPT-4 Mini
AI Evaluation
6.5/10

User Rating

No ratings yet. Be the first to rate!

Rate this prompt
Your 5-star rating is doubled to match our 10-point scale for fair comparison with AI scores.