Comment ChatGPT loves to write code that doesn't work (Score 2) 66
Stack Overflow can be pretty annoying but usually you can find an answer with some decent Googling. Literally every time I've tried to use ChatGPT to answer a code question it has responded with incorrect information or invalid code. I've had it hallucinate what the client classes are for 3rd party libraries. It *looked* like something viable but it sure wasn't. It also just invents its own syntax for languages like terraform that isn't anywhere close to something that would ever work.