A code generator is just a compiler; general arguments against code generation work equally well as arguments against using a compiler.
Writing a compiler is not "worse is better" and does not force you to hack something [fragile] together. Therefore, your argument is wrong.