I Asked ChatGPT to Review My Code. Here's What It Missed (And What It Caught)

Dev.to AI
Generative AI

Everyone's using AI for code review now. But is it actually good at it? I ran an experiment. I took 5 real pull requests from my projects and asked ChatGPT (GPT-4) to review them. Then I compared its feedback to what a senior developer found. The results were. mixed. What AI Code Review Caught 1. Obvious Bugs (10/10) AI is shockingly good at spotting basic errors: // AI caught this immediately func divide ( _ a: Int, by b: Int ) -> Double { return Double ( a ) / Double ( b ) // No zero check! } It flagged the missing zero division check, suggested a guard statement, and even wrote the fix.