<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: John Brad</title>
    <description>The latest articles on DEV Community by John Brad (@john_brad_8841bbc3f2ef09a).</description>
    <link>https://dev.to/john_brad_8841bbc3f2ef09a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4071777%2F1af15f86-5c01-4bad-bb53-8ede578569b0.jpg</url>
      <title>DEV Community: John Brad</title>
      <link>https://dev.to/john_brad_8841bbc3f2ef09a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/john_brad_8841bbc3f2ef09a"/>
    <language>en</language>
    <item>
      <title>I Asked an AI to Roast My Code. It Found 14 Problems in 30 Seconds.</title>
      <dc:creator>John Brad</dc:creator>
      <pubDate>Mon, 10 Aug 2026 17:47:20 +0000</pubDate>
      <link>https://dev.to/john_brad_8841bbc3f2ef09a/i-asked-an-ai-to-roast-my-code-it-found-14-problems-in-30-seconds-3jjl</link>
      <guid>https://dev.to/john_brad_8841bbc3f2ef09a/i-asked-an-ai-to-roast-my-code-it-found-14-problems-in-30-seconds-3jjl</guid>
      <description>&lt;p&gt;I Asked an AI to Roast My Code. It Found 14 Problems in 30 Seconds.&lt;br&gt;
Code review is the highest-leverage activity a team can practice. It catches bugs before production, spreads knowledge, and enforces standards. It's also painfully slow: a single PR can take 30–60 minutes of focused attention, and when you have dozens of PRs flowing daily, review becomes the bottleneck.&lt;/p&gt;

&lt;p&gt;So I tried the other extreme. I pasted my code into an AI that doesn't suggest politely — it roasts it. Line-by-line, unsparing, with line numbers and suggested refactors. The verdict came back in under a minute, and it found 14 issues I'd missed.&lt;/p&gt;

&lt;p&gt;Here's what it taught me.&lt;/p&gt;

&lt;p&gt;What an AI code roast actually is&lt;br&gt;
An AI roast is a critique, not a linter. Linters check formatting rules you already know. An AI reviewer reads your code like a senior engineer on a bad day: it hunts for code smells, security anti-patterns, performance red flags, and style violations — then tells you exactly where they are and how to fix them.&lt;/p&gt;

&lt;p&gt;It doesn't replace human judgment. It removes the rote, pattern-matching work that consumes 80% of a human review's time. That's the part nobody enjoys anyway.&lt;/p&gt;

&lt;p&gt;The 5 code smells it caught instantly&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Functions that are too long&lt;br&gt;
Anything over ~50 lines signals the function is doing three jobs instead of one. The AI flagged mine and pointed at the exact extraction points.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Excessive nesting&lt;br&gt;
More than three levels of indentation deep means the control flow is tangled. Every extra level multiplies the number of paths a future maintainer has to hold in their head.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Magic numbers and strings&lt;br&gt;
if response.status == 429 and retries &amp;lt; 3:&lt;br&gt;
What are 429 and 3? Nobody knows. Named constants are free — the AI doesn't need to read your intent, but your teammates do.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Duplicated logic&lt;br&gt;
Copy-pasted blocks that should have been extracted into a shared utility. The classic: the same validation snippet in three different handlers, already starting to drift apart.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mixed responsibilities&lt;br&gt;
A function that fetches, validates, transforms, and logs — then also renders the error. Single-responsibility violations are the quiet killers of testability.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Why "harsh" feedback is better for you&lt;br&gt;
There's a reason the tool calls itself a roast: it's easier to improve when the feedback is specific enough to hurt. Vague praise ("looks good!") tells you nothing. Specific criticism ("line 42: this loop re-queries the DB every iteration") tells you exactly what to change.&lt;/p&gt;

&lt;p&gt;I wrote about why negative feedback outperforms compliments when you're trying to get better — the short version: specific criticism is actionable, general praise is not.&lt;/p&gt;

&lt;p&gt;What it didn't catch (and why that matters)&lt;br&gt;
The AI caught smells in seconds, but it couldn't tell me whether the feature made product sense or whether the architecture was right for the next two years. That's the human part of review — and it's exactly what the human reviewers should focus on once the rote work is automated.&lt;/p&gt;

&lt;p&gt;AI review doesn't shrink your team's review culture. It frees your reviewers to actually review: design, trade-offs, and taste. The patterns can stay in the machine.&lt;/p&gt;

&lt;p&gt;Try it&lt;br&gt;
The tool I used is Roast &amp;amp; Review — you paste code (or a resume, a landing page, a pitch deck, a portfolio…) and get a brutal, specific critique in seconds.&lt;/p&gt;

&lt;p&gt;Roast your code: &lt;a href="https://roast-and-review.com/roast-my-code/" rel="noopener noreferrer"&gt;https://roast-and-review.com/roast-my-code/&lt;/a&gt;&lt;br&gt;
The rest of the toolset: &lt;a href="https://roast-and-review.com" rel="noopener noreferrer"&gt;https://roast-and-review.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>reviews</category>
    </item>
  </channel>
</rss>
