r/TheMachineLearning • • 24d ago

Frontier LLMs stopped adding code comments

Post image
720 Upvotes

178 comments sorted by

View all comments

0

u/FragmentedHeap 24d 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 24d 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/tumes 22d ago

They consistently comment on the one motivating factor that caused a change rather than writing expressive code that explains itself or trying enough iterations to settle on an unintuitive hack that needs explaining, instead it narrates why a single use case fix addressing that one use case, which congests context, adds nothing long term, and typically actively harms development because LLMs fixate on anything that is made explicit. Whatever it looks at it steers towards, and in my experience signposting the mistakes or their justification only raises your blood pressure.

1

u/xvillifyx 22d ago

This is bad prompting or your eval pipeline has issues somewhere

1

u/tumes 22d ago

I told it to make no mistakes I have no clue what more I could be doing.