Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

'over-commenting simple code' is preparing it for future agent work. pay attention to those comments to learn how you can better scaffold for agents.


They do seem to leave otherwise useless comments for itself. Eg: on the level of

// Return the result

return result;

I find this quite frustrating when reading/reviewing code generated by AI, but have started to appreciate that it does make subsequent changes by LLMs work better.

It makes me wonder if we'll end up in a place where IDEs hide comments by default (similar to how imports are often collapsed by default/automatically managed), or introduce some way of distinguishing between a more valuable human written comment and LLM boilerplate comments.


They should have a step to remove those sorts of comments, they only add noise to the code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: