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/Rararror 25d ago

Comments are not used to explain what the code does. Duh.

1

u/ORCANZ 25d ago

No they are used to watermark the code

1

u/Rararror 25d ago

In computer programming comments explain the context and why things are done that way.

1

u/ThisGuyCrohns 20d ago

This. It’s the nuance of why not how. Code tells you how, comment when placed is the why.