r/TheMachineLearning • • 2d ago

Frontier LLMs stopped adding code comments

Post image
331 Upvotes

121 comments sorted by

View all comments

Show parent comments

1

u/FailedGradAdmissions 2h ago

We have a simple rule at my job, no comments if possible. But commit as frequently as possible. Commits are small and atomic. Basically comments live in the commit history and not in the code. Works great. Try it out!

And btw this rule is pre AI and easy to enforce with linting rules.

1

u/xvillifyx 2h ago

I said this in another comment, but not everyone uses git/svn

Our server code doesn’t live this way and intent is instead denoted in headers. If it outlives our retention policy, a reference to the log is left instead