ChatGPT for coding is like getting a random answer off StackOverflow, except without any sources, comments, alternatives, the code will likely have completely made up commands. Might still work for noob stuff, but more efficient to Google + StackOverflow or read documentation