I would say that falls under "poor coding style." If you find yourself autogenerating code, you need a more powerful programming language.