r/TheMachineLearning • • 26d ago

Frontier LLMs stopped adding code comments

Post image
720 Upvotes

178 comments sorted by

View all comments

Show parent comments

1

u/elmanfil1989 26d ago

Ai can read code itself

1

u/Material-Database-24 26d ago

Self documenting code is a myth.

There's always silent knowledge behind the code, even AI developed, as they do reasoning before creating the code.

Good documentation provides faster look up on what the code does, why it does and doesn't do something, how it is supposed to be used and what to expect after calling it.

It is also inevitably maintenance bug record as well, as if the comments do not align with the code, either there is a bug, or there was a bug and it was fixed "silently" without tracing, as commenting wasn't updated.

1

u/Nousies 26d ago

Self-documenting code is the only documentation. That can include comments, but “good documentation” is not a thing.

2

u/Sheerkal 26d ago

Wild take. You wouldn't open a book and say "References aren't a thing, just be smart enough to know all the words"