开发者

Is code generation really useful for general (crud based) agile development?

I was r开发者_Python百科eading the Scott Hanselman's article (http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx) then I got me thinking about T4, CodeSmith and code generation ... So, is that a good choice for saving dev-time, maintenance-time , money, architectural issues, etc ?

Thanks for replying ...


Code generation is good whenever you have some set of tasks that are similar in some regular way, and the time to implement the generator is less than the time to build or maintain the tasks.

If you have 100 record types, and want a CRUD tool to provide record inspectors/updates, a generator could be pretty handy. If you have 3 and they are stable, a generator is a waste of time.


So, is that a good choice for saving dev-time, maintenance-time , money, architectural issues, etc ?

No.

A language which doesn't rely on code generation is a good choice for saving developer time, maintenance time, money and reducing architectural issues.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜