▲ | stuaxo 19 hours ago | |
Similar logic, but hard disagree on keeping comments that are exactly what the following code does. They are useful to the LLM in writing the code (which comes after). But when it comes to an LLM reading that code later its just a waste of context. For humans its a waste of screen space. A comment should only explain what the following thing does if its hard to parse for some reason. Otherwise it should add information: why something is as it is, I.e. some special case, add breadcrumbs to other bits of the code etc. I wish these coding agents had a post step to remove any LLMish comments they added during writing, and I want linters that flag these. | ||
▲ | lolc 11 hours ago | parent [-] | |
Prompting to remove redundant comments works quite well, but I dislike the extra step. |