News for hackers. Stuff that matters.
Re:LLMs are mortally terrified of exceptions by justatdotin on Thursday October 09, 2025 @09:06PM (#45534585)
'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.
Re:LLMs are mortally terrified of exceptions by mnahkies on Friday October 10, 2025 @03:27AM (#45536207)
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.

Re:LLMs are mortally terrified of exceptions by stuaxo on Friday October 10, 2025 @10:18AM (#45539391)
They should have a step to remove those sorts of comments, they only add noise to the code.