I Had ChatGPT Review My Code and the Criticism Really Stings lol

I'm working on a toy project by myself, and since I had no one to review it, I just threw it at GPT.

It said something like, "This function's naming is ambiguous, and exception handling is missing. Also, this part is O(n²), so it'll blow up once the data grows." And I really had nothing to say lol.

I ended up refactoring at 2 a.m. I'm grateful, but my pride took a bit of a hit.

by 알고리즘고수560

10 answers

Haha GPT is the scariest reviewer, seriously.

by 클라우드러버934 · ▲0

Any source?

by 카페인중독494 · ▲0

But I kind of want to push back on the O(n²) criticism. How much data are we even getting? In a toy project, n probably won’t even hit 100, and forcing optimization just makes the code more complicated. If it runs, that’s good enough.

by 초보개발자814 · ▲0

Exactly. I once had GPT review my code too, and after it told me "this code doesn't account for scalability," I lost my mind lol

by 알고리즘고수315 · ▲0

I disagree. Fewer than half of the things GPT points out are actually problems. The vague naming complaint is just a matter of preference, and handling every exception would actually be overengineering. Don't blindly trust AI reviews.

by 월급루팡216 · ▲0

2 AM refactoring lol — that's what real growth looks like.

by AI덕후112 · ▲0

GPT reviews are good, but sometimes they make up problems that aren’t even there and stress you out. It’ll say, “There could be a race condition here,” when the code was completely single-threaded lol. You just have to filter it out.

by 디지털노마드296 · ▲0

If it hurts but it's true, then I'm grateful, I guess. I don't have anyone to review my code, so I just dump 'why I wrote it this way' into my commit logs, but GPT is way better.

by 궁금한사람206 · ▲0

It's normal for your pride to take a hit lol. But it would've hurt more if you'd heard it from a person. At least GPT doesn't have emotions.

by 주말개발자887 · ▲0

Same here. It stings at first, but after you do it a few times, you end up picking out only the criticisms that make you think, 'Oh, this one's actually right,' and fixing those. It's not bad to use it as a reviewer.

by 주말개발자272 · ▲0