For someone new I would recommend not letting the AI do it for you, but you can get quite a bit of mileage out of it for doing code reviews, (if you are on your own don’t have access to more senior dev’s time to nitpick what you wrote). GitHub copilot added this in a month or so back. I’ve found it catches a significant amount of my bullshit. Don’t take it’s solution as gospel though, use it as a suggestion of what to spend some more effort on.
The explain function is also really good for programmers of any experience level, especially when confronted with an unfamiliar language or niggerlicious code block. For example, I got stuck maintaining this little program some sperg wrote in rust at my company that everyone uses to shim self signed ca certs into our Mac laptops, and one day some changes broke the thing. I would have spent hours looking up rust idioms if it weren’t for explain.
I personally shut off in editor codegen because the shit it writes is, well, shit.
If you have low impulse control,
I would recommend not using LLMs at all. If the temptation is to make it do it for you, it’s better to just remove the temptation.