By mswatcher
via professionalaspnet.com
Published: Jun 19 2009 / 21:34
Several times over the past week I have had some conversations with folks about code generation, some pro (like me), some con and some that find it scary. My first real exposure to a serious code generation tool was at TechEd 2003 in Dallas. I remember an 8 AM session on the last day given by a Microsoft Engineer from Grenoble France
Comments
tgautier replied ago:
Maybe it's just me but if something can be automated it shouldn't be the creation of code. It should be a framework that does what you need it to do and doesn't require you to write a bunch of boilerplate code that can be written by a computer.
In other words, code generation sounds like a code smell to me. Take for instance EJB 2.0. There is no code generation in a Spring/Hibernate app, or EJB 3 app. Because the tedious repetitive boilerplate code that was required in EJB 2.0 was eliminated.
Voters For This Link (11)
Voters Against This Link (3)