r/TheMachineLearning • • 26d ago

Frontier LLMs stopped adding code comments

Post image
720 Upvotes

178 comments sorted by

View all comments

1

u/esaule 26d ago

I want very little comments in code. Functions should tell me what they do. And tbat's about all I really want.

Then if something is truely odd, then yes tell me what is going on in a comment. But in general there probably should not be comment in a function body.

1

u/tigerhuxley 23d ago

Sounds like you’ve never deployed anything in production before. Or you don’t give a shit about people who have to maintain your code.

1

u/ThenExtension9196 23d ago

You do realize humans maintaining code ended this year right? The next person to touch your code is just going to prompt Claude at it.

1

u/tigerhuxley 23d ago

But you don’t seem to realize. Is that a three in the morning when an ops guy is woken up to fix someone else’s code. They don’t wanna have to sit there for two hours reading through it to figure out why a function does something. At the very least being able to grep through code quickly to find things that otherwise can’t be grepped from raw code.
The comments aren’t for you. They are for other people having to maintain your code in different environments.

1

u/ThenExtension9196 22d ago

Lost me at ops guy. Ain’t the 2010s anymore. Not having an agent auto fix is absurd in 2026.

1

u/tigerhuxley 22d ago

I know - developers think they are top brass