Re:There Is an AI Code Review Bubble
by realusername on Monday January 26, 2026 @02:40PM
(#46770473)
I had a similar review by AI except my equivalent of setSomeData was stateful and needed to be there in both places, the AI just didn't understand any of it.
[ Parent
| on HN ]
Re:There Is an AI Code Review Bubble
by james_marks on Monday January 26, 2026 @02:45PM
(#46770542)
When this happens to me it makes me question my design.
If the AI doesn’t understand it, chances are it’s counter-intuitive. Of course not all LLM’s are equal, etc, etc.
Then again, I have a rough idea on how I could implement this check with some (language-dependent) accuracy in a linter. With LLM's I... just hope and pray?
Re:There Is an AI Code Review Bubble
by realusername on Monday January 26, 2026 @06:53PM
(#46773469)
I'd agree with that but in the JS world, there's a lot of questionable library designs that are outside of my control.
My reaction in that case is that most other readers of the codebase would probably also assume this, and so it should be either made clearer that it's stateful, or it should be refactored to not be stateful