News for hackers. Stuff that matters.
Re: by bulldog13 on Wednesday December 21, 2022 @06:25PM (#34087738)
Can anyone recommend some more articles about this ? Specifically, using chatgpt to write code? The more in depth, the better.
Re: by nilsbunger on Wednesday December 21, 2022 @06:39PM (#34087851)
Ask ChatGPT! It can write one for you :)
Re: by mbil on Wednesday December 21, 2022 @08:44PM (#34088708)
Not ChatGPT, but this article[0] (which was on HN earlier this year[1]) goes through building a small game in JS using OpenAI Codex.

[0]: https://www.shawnmatthewcrawford.com/balloons-the-balloon-cl...

[1]: https://news.ycombinator.com/item?id=31211280

Re: by hmsimha on Wednesday December 21, 2022 @09:48PM (#34089104)
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

Re: by bulldog13 on Thursday December 22, 2022 @08:16AM (#34092921)
Wow man, this is amazing, thank you for responding!