logoalt Hacker News

iFiretoday at 1:29 PM1 replyview on HN

My prompt of asking it match the comment density of the last release of an exemplar project (Let's say sqlite) seems to work.


Replies

swe_dimatoday at 4:25 PM

my prompt (doesn't help):

> Go easy on the comments, only add comments if there's a big gotcha that is not clear from the code itself, or if something in another place is going to cause a side effect. Code should be self-documenting. When in doubt, don't add a comment at all. If you do have to add a comment, make it short and on point. Comments should show history of code changes or functionality, only comment on the current state (or not at all).

show 2 replies