logoalt Hacker News

preg_match • today at 4:21 PM • 2 replies • view on HN

I agree 100%. Most people use comments wrong, and LLMs use the comments the most wrong. Comments should explain some context you can’t get by just reading the code. Some weirdo business decision or why you’re choosing to use the strategy you’re using.


Replies

intorio • today at 4:42 PM

That's not my experience with LLMs, at least not Opus. They love inserting comments that describe context I provided when I saw it making a code decision I disagreed with and asked for a change, sometimes it can be excessive.

➕ show 1 reply
nunez • today at 4:38 PM

Glad I'm not alone in thinking this. AI adds comments for EVERYTHING by default. It's unnecessary.

➕ show 1 reply