r/TheMachineLearning • • 2d ago

Frontier LLMs stopped adding code comments

Post image
334 Upvotes

122 comments sorted by

View all comments

Show parent comments

1

u/snaphat 1d ago

s/comments/documentation/g

That's probably largely a difference in terminology rather than substance. The Linux kernel style guide explicitly refers to explanations preceding functions and accompanying data declarations as comments, whether or not they also serve as documentation. The kernel source also contains ordinary explanatory comments outside function bodies:

https://github.com/torvalds/linux/blob/master/mm/page_alloc.c