Let AI brutally roast it, then fix it instantly.
Real roast. Real pain. Real improvement.
def gd(x):
try:
try:
return x['data']['items'][0]['value']
except:
return None
except:
passA function named gd. Nested try/except with bare excepts. One returns None, the other just… gives up. This isn't code, it's a cry for help.
except swallows every error, including KeyboardInterruptpass hides failures from callersdef get_first_item_value(payload: dict) -> str | None:
items = payload.get("data", {}).get("items", [])
return items[0]["value"] if items else NoneThree steps to emotional damage.
Any language, any size. Even that file you're ashamed of.
Be Nice, Roast Me, or Destroy Me. Pick your therapy.
Take the hit, then receive production-ready code.
Three tiers of truth.
Gentle feedback for sensitive souls.
“Hey! Consider adding a few type hints when you have a moment — great job otherwise!”
The classic savage experience.
“You named three variables 'data' in the same function. I'm calling the police.”
Absolutely no mercy.
“I've seen better architecture in a cardboard box. Quit coding. Become a shepherd.”
Submit code, invite a friend, let the community decide whose code deserves more roasting.
Pick a friend or a random dev.
Drop your worst code. Both of you.
Community roasts decide the loser.
Free therapy, or premium humiliation.
Secure payment via Gumroad
Real reviews. Real emotional damage.
“It called my component 'a useEffect graveyard' and honestly? Fair.”
“Got roasted so hard I refactored my entire service on a Friday night.”
“Brutal, correct, and somehow funnier than my standup jokes.”
Everything you wanted to ask before getting roasted.
TrashMyCode is a free AI-powered code reviewer. Paste your code, pick a roast intensity, and get brutally honest feedback, a list of bugs and bad practices, and an improved version — all in seconds.
Yes. Every account gets 3 free AI roasts every day (resets at midnight UTC) with no credit card required. If you want unlimited roasts, battle mode, and zero ads, Pro is just $1.99/month.
JavaScript, TypeScript, Python, Java, C++, PHP, Ruby, Go, and Rust are first-class. The AI also handles most other languages reasonably well — if you can paste it, you can roast it.
Your code is sent to the AI for analysis and saved to your private dashboard so you can revisit roasts later. It is never shared publicly unless you explicitly post it to the community feed or share a roast card.
TrashMyCode uses Llama 3.3 70B as the primary model with a Gemini fallback. It is excellent at catching bugs, code smells, naming issues, and bad patterns. Treat it like a fast, opinionated senior reviewer — useful, but always sanity-check critical changes.
Battle Mode lets two developers submit code for the same problem and have the AI judge whose code is worse (or better). Great for friendly debate, code reviews, and settling 'whose code is more cursed' arguments.
The Community feed is where developers post code snippets, screenshots, videos, and questions for others to roast. You can comment, drop your own roast on a post, and tag friends.
Pro is billed via Gumroad. You can cancel any time from your Gumroad receipt — no email or support ticket needed. Access continues until the end of your billing cycle.