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

Not so sure given how fast ai can understand the code already written

Personally, I do try to keep a comment at the top of every major file, with a comment with bullets points, explaining the main functionality implemented and the why

That way, when I pass the code to a model, it can better “understand” what the code is meant to do and can provide better answers

(A lot of times, when a chat session gets too long and seems like the model is getting stuck without good solutions, I ask it to create the comment, and then I start a new chat, passing the code that includes the comment, so it has better initial context for the task)




AI doesn’t understand that’s the problem.

If the training data contains some mistakes often it will reproduce them more likely.

Unless there are preprogrammed rules to prevent them.


I’ve had really good results, but of course ymmv

As a side note, most good coding models now are also reasoning models, and spend a few seconds “thinking” before giving a reply

That’s by no means infalible, but they’ve come a long way even just in the last 12 months




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: