Using AI Generated Code

So Steve brought this up on github (I deleted my responses) and was talking about using AI generated code. I met some people that tried to use AI generated code to build a website, but couldn’t deploy because lack of programming experience (could not debug, it was a mystery).

But if we can use it to automate writing code, and test it thoroughly to take care of some issues, I don’t see why I shouldn’t embrace automation.

Admittedly, I am behind in the LLM game, I’ve been corporate so I wasn’t allowed to use LLM technologies on their codebase (I would be fired immediately), but wondering if anyone’s used this and compiled on a production code base in practice, and merged? It seems like it could be useful.

I have not actually tried to compile C++ generated code, and specify in practice, but it could help scale.

Granted, if there are issues, then you still have to be able to read compiler errors (SNIFAE). I think corporate environments people may be using it.

Just curious to hear peoples thoughts, because I can trust this community?

I am all for automation.

So like testing, using correct packages, and versions?

Sometimes I get responses using the Google AI that’s not totally correct, but mostly, so it looks like it could be generated, but need some corrections. I am hesitant, because sometimes debugging someone else’s code becomes more of a hassle than using someone else’s.

Any thoughts?