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

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

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