News for hackers. Stuff that matters.
Re:GitHub cuts AI deals with Google, Anthropic by realce on Tuesday October 29, 2024 @04:40PM (#41989125)
Totally agree that heavy commenting is the best convention for helping the assistant help you best. I try to comment in a way that makes a file or function into a "story" or kind of a single narrative.
Re:GitHub cuts AI deals with Google, Anthropic by jascha_eng on Tuesday October 29, 2024 @05:02PM (#41989376)
That's super interesting, I've been removing a lot of the redundant comments from the AI results. But adding new more explanatory ones that make it easier for both AI and humans to understand the code base makes a lot of sense in my head.

I was big on writing code to be easy to read for humans, but it being easy to read for AI hasn't been a large concern of mine.