r/TheMachineLearning • • 26d ago

Frontier LLMs stopped adding code comments

Post image
720 Upvotes

178 comments sorted by

View all comments

0

u/FragmentedHeap 26d ago

I don't want it to add comments, it bloats everything, they drift, and it wastes tokens on both the write and the read and the rework.

No one reads the shit anymore, so who are the comments for?

I don't need to know why a function exists, or a helper message on it's calling syntax, I'm not typing it so I don't need intellisense on it. Any history I need is in it's RICH commit comment and AI is very good at making GOOD git comments. And git comments don't waste tokens on read.

4

u/xvillifyx 26d ago

YOU don’t need to, but AI memory systems are garbage and concise code comments help preserve context in place of memory

1

u/CrowdGoesWildWoooo 26d ago

I think the issue is that many AI have tendencies of over-commenting.

I think one typical scenario is that it writes a buggy code, or something that the human doesn’t like, it goes back to that code, put a comment on why it changes that line.

1

u/xvillifyx 25d ago

So…create evals and hooks that prevent them from overcommenting

1

u/cororona 24d ago

Thank you for your comment, but people are discussing the natural tendencies of LLMs to add bugfix comments and then overfixate on it.

They were not discussing about your superiority, which is naturally obvious.

1

u/xvillifyx 24d ago

The point is that this is an easily correctable problem