Get Grok to ruthlessly and humorously critique your code, then rewrite it properly with full explanations.
Roast my code honestly and then fix it completely. Be sharp and direct. ``` [PASTE YOUR CODE HERE] ``` Language: [e.g. Python / JavaScript / SQL / PHP / Go] Context: [What is this code supposed to do?] **Part 1 - The Honest Critique** Give the real unfiltered assessment. What is wrong, what is embarrassing, and what would make an experienced developer wince? Be specific with examples from the actual code - no generic feedback. **Part 2 - Categorized Problems** - Critical bugs that will break in production - Security vulnerabilities with severity rating - Performance bottlenecks - Maintainability and code structure issues - Things that technically work but should be done differently **Part 3 - The Properly Fixed Version** Rewrite the complete code with: - Every significant change commented inline - Clear explanation of why each fix matters - Modern patterns and best practices applied **Part 4 - What You Actually Did Right** At least 2 things that were done well or showed good thinking. There is always something. **Part 5 - One Thing to Learn** The single most valuable concept this code review should teach you going forward.