News for hackers. Stuff that matters.
Re:An Elixir/LiveView game written entirely by ChatGPT by satvikpendem on Saturday December 03, 2022 @01:52PM (#33846171)
> Has to anyone asked ChatGPT to refactor existing horrible code?

Yes it works well with stuff like React class components to functional ones with hooks. It even tells you what to optimize and does it for you, if you ask it to.

Re:An Elixir/LiveView game written entirely by ChatGPT by pcthrowaway on Saturday December 03, 2022 @03:30PM (#33846996)
Whoa. Do you have a good guide on how to do this?
Re:An Elixir/LiveView game written entirely by ChatGPT by tarr11 on Saturday December 03, 2022 @03:44PM (#33847133)
you prompt with “rewrite this code, but use React Hooks”