logoalt Hacker News

realusernameyesterday at 7:40 PM2 repliesview on HN

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.


Replies

james_marksyesterday at 7:45 PM

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.

show 2 replies
frde_meyesterday at 11:08 PM

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