Its funny the worst code I used to notice was my old code that solved the problem I had faced at the time but had some flaw in the thought process that I later corrected. The same thing applies to generated code. Yes there is a lot of garbage but you can figure out ways to generate better output as you learn the tools and the models get better