Hacker News new | ask | show | jobs
by sacado2 926 days ago
What works in a toy example doesn't necessarily scale / handle corner cases.
3 comments

The best description I've heard is that ChatGPT is like a really fast and really eager junior programmer. Sure you can delegate a lot of work to it, but you have to keep a close eye on it to make sure it doesn't go off the rails (and doesn't forget to take corner cases into account, uses appropriate algorithms, etc) .

I tend to read along with the code it's writing and make suggestions when I see it's missing stuff, or I fill it in myself afterwards, depending. For one it can type out the annoying bits much faster than I can!

At the moment I do keep the general plan in my head myself though, and I thoroughly read anything it generates before I run it.

Or is just plain wrong. Asked for an example a few days ago on how to mount a secret as a file on ECS. The example it gave was for Kubernetes.
In my experience, ChatGPT is better at managing corner cases than your normal SO or book example.