Any good things can become bad when overused, and Code Generator is one such example.

Code generator is not a new concept for most of Windows programmers. When you drag any control onto a form, the IDE generates the appropriate code for you behind the scene. So, if you have done Windows programming using Are Developers Too Reliant on IDEs?, developers face the same challenge of the code generated by templates. Generating code has become so simple that people rarely pay any attention to the details of the code being generated. And some developers simply do not know how to create such functionality without using a template.

And that is probably why I have been reluctant to use or recommend any code generators so far, I personally tend to stay away from most of the code generation tools. And if I must use it (e.g. within Visual Studio .Net), I will try to understand the generated code first before going any further.

Be Sociable, Share!