I use it for snippets. Always double check though and always need to remind it of methods that will and will not work. Often it's just inspiration or for doing lengthy subquery style stuff that takes ages to type out. But even then, 10 mins of battling it when I didn't want to take 5 mins to just manually do it is sadly common.
I do like asking it to optimise and it can't find anything that could be better, though. We're friends then.
Boilerplates, or solutions to really weird one off problems that require a bunch of synthesis across different, unfamiliar domains (ie, as a web dev, how do I install imagemagick on an internal, stripped down rootless RHEL container with microdnf)
Yeah, or implementing well-defined single functions that would otherwise just be a hassle. I’ll just stub out the function signature and tell it to finish the rest.
I used it a bit during the first hype wave. It was neat, but immediately I found I hadn't actually learned anything. When I went back to the code, there wasn't a matching trail of purple links though Google or stack overflow for me to follow and retrace my steps. That probably reinforced for me that programming is about design choices, and provenance of ideas, more than anything else.
You're not supposed to let ai write code you don't understand. It's meant to help with syntax you don't remember (but would recognize upon seeing), reduce typing, and get creative juices flowing by presenting a way of doing the things.