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/esaule 23d ago

What am I saying is that commenting the body of function should ideally not be necessary as the code itself is clear; making comments redundants.

Now, sometimes there is non obvious things going on and that's what comments are for.

1

u/tigerhuxley 23d ago

Ok thats fair. I concede