Code Generation

Sunday, April 25, 2004 2:54:31 PM
Rate this Content 0 Votes

Wow almost a month since I've posted anything, thought I better blog something before the month ends. I've been so busy lately.  One thing I've been exploring lately is code generation tools. I've played with RapTier, CodeWise, MyGeneration, and a few others.  All of them have their strengths and can be useful tools in rapid application development. If you have a good data model already, you can point RapTier at the database and it will generate a fully functional 3 tier application (ASP.NET or Windows Forms .NET, C# or VB.NET) that is rather impressive. In the Web application, every table is represented with a DataGrid using in place editing, paging, and sorting. As with most of these tools, it generates stored procedures too. Reviewing the code that is generated by all of these tools, I find things I like and things I don't like. Of course you can modify the generated code but I'm leaning more and more toward MyGeneration as the one that is easiest for me to create my own templates and therefore generate code the way I would write it.  Its like using ASP to write code instead of html.  It comes with templates that generate fairly well architected code, but I want mine to use the SqlHelper class instead of straight ADO.NET and I want to use my own naming conventions so I am spending some time working on the templates to write code my way. I think it will be a big time saver.  I'm going to make templates for stubbing out UI, Business, and Data layer classes and stored procedures the way I would write them. I fully expect to modify them after generation, but much of the usual stuff will be automated.

Copyright 2003-2010 Joe Audette
Share This Using Popular Bookmarking Services

re: Code Generation

Tuesday, April 27, 2004 4:11:50 AM David
I expect a full report on your findings :) It would be great to take advantage of a code generation tool, but I've always been wary of them. Seriously, as you gain more experience with these kind of tools, I'd really be interested in hearing about the pros and cons.

re: Code Generation

Wednesday, May 19, 2004 11:09:12 AM Mike Griffin
I am one of the creators of MyGeneration, we've improved the product quite a bit. Are you still using it? Have you kept up with recent builds? Thanx for the kind comment on the architecture. I really like that you got the main point of MyGeneration, the templates let you do anything, fully customizable.

re: Code Generation

Sunday, May 30, 2004 11:49:21 AM Joe Audette
Mike, Thanks for the post! I'll be sure and get the latest version and give it a try. I kind of got sidetracked and haven't got back to working on my own templates yet, but plan to soon. I guess I need to build some notification features into this blog, I just noticed your comment today. Best Regards, Joe

re: Code Generation

Thursday, July 12, 2007 10:36:56 PM Eddie Koo

Hi,

where can i download the template?

thanks

Comments are closed on this post.
Donate Money to support the mojoPortal Project. View Joe Audette's profile on LinkedIn View Joe Audette's profile on The Guild of Accessible Web Designers site