A lot of the things you complain about were underspecified in your question, it has to make some assumptions. And I'll bet if you ran into any of the errors that you describe you could get solutions by simply pasting the errors into the chat box. The code produced by these models is not going to be perfect any more than a human's would be. You'll still need an iterative process and some common sense. But it's easier and faster than doing everything yourself.