19
I mean, I used to doubt AI for code reviews, but seeing it catch a big bug changed my mind.
3 comments
Log in to join the discussion
Log In3 Comments
ruby_lopez4d ago
Yeah, that'll do it. I had a similar moment last week where it flagged a logic error I'd stared at for an hour. My ego took a hit, but my code got better. It was something really silly, like I was checking for the wrong variable in a loop condition. Felt both saved and a little dumb.
3
zarabell4d ago
Ever catch yourself doing that thing where you fix one bug but start using totally different variable names? I've gotten in the habit now of renaming the old one first, before I write the new check. Makes my brain follow along with what the code is actually doing, not what I just said it should do. Saved me from a ton of those off-by-one errors in array loops.
4
morganhill3d ago
Try keeping a simple checklist for common slip ups like that. I work with medication alerts at the hospital, and the system will flag a wrong dose even if I'm sure I typed it right. It's the same idea. You start to trust the double check more than your own gut, which feels weird but stops the small mistakes before they get big.
3