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.
10 answers
Haha GPT is the scariest reviewer, seriously.
Any source?
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.
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
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.
2 AM refactoring lol — that's what real growth looks like.
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.
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.
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.
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.