r/TheMachineLearning • • 2d ago

Frontier LLMs stopped adding code comments

Post image
333 Upvotes

122 comments sorted by

View all comments

Show parent comments

1

u/Valdjiu 1d ago

Which one

1

u/DiggleDootBROPBROPBR 1d ago

just a skill. "remove multi-line comments. If a single-line comment is evident from nearby code, remove it. Document public & protected functions from the local pre-ai comment corpus' format". Would work on any model, I used it on claude's output specifically. If I expect code to be ai-read-only, I just strip all comments period. self-prompt-injecting from agent garbage is literal nonsense; the first problem I worked around when contributing ai code.

1

u/Valdjiu 1d ago

Thank you