logoalt Hacker News

humanrebarlast Saturday at 2:49 PM2 repliesview on HN

Excellent question. Maybe people will use this newfound productivity to actually review, test, and document code. Maybe.


Replies

nicolast Saturday at 2:58 PM

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)

show 1 reply
tayloriuslast Saturday at 3:06 PM

Lol.