top | item 34087738

(no title)

bulldog13 | 3 years ago

Can anyone recommend some more articles about this ? Specifically, using chatgpt to write code? The more in depth, the better.

discuss

order

hmsimha|3 years ago

This isn't an article, but I used ChatGPT to make a Hacker News extension (which I'm now using), that highlights new comments when I navigate to a thread I've already visited: https://github.com/HartS/gpt-hacker-news-extension

Each commit here contains my prompt in the commit message, and the changed code was entirely provided by ChatGPT. I also appended its output (including explanations) verbatim to the gpt-output file in each commit.

So with each commit, you can see what I prompted it (the commit message), what it responded with (the change in the commit to that log file), and the code that I changed as a result of its response (all other changes in the repo).

In actual use of the extension (if you want to use it), I changed the "yellow" background-color to "rgba(128,255,128,0.3)" (a light green color), but I did that change myself because I didn't think I'd be able to get it to pick a colour that looks good for HN

bulldog13|3 years ago

Wow man, this is amazing, thank you for responding!

nilsbunger|3 years ago

Ask ChatGPT! It can write one for you :)