ChatGPT is pretty impressive at programming, but can produce programs that don't compile or work properly. It is a really quick way to discover idiomatic ways of approaching problems in programming languages and discovering libraries to use and how to use them.