Code Generation Tools
-
We are thinking about using a code generation tool for our project. Basically, we have a SQL Server database schema and we want to generate a data layer and GUI. Does anybody have any experience with code generation tools like CodeSmith, IronSpeed, TierDeveloper, etc? If so, how well did they work? Am I wasting my time looking for a code generation tool? Any advice is appreciated. Thanks!
-
We are thinking about using a code generation tool for our project. Basically, we have a SQL Server database schema and we want to generate a data layer and GUI. Does anybody have any experience with code generation tools like CodeSmith, IronSpeed, TierDeveloper, etc? If so, how well did they work? Am I wasting my time looking for a code generation tool? Any advice is appreciated. Thanks!
I have had good results using llblgen. Doesn't do GUI generation, but it makes a very nice datalayer. Developing complex queries can be quite time consuming at first and it doesn't type the results of stored procedures. Ryan.
-
I have had good results using llblgen. Doesn't do GUI generation, but it makes a very nice datalayer. Developing complex queries can be quite time consuming at first and it doesn't type the results of stored procedures. Ryan.
I would also recommend llblgen, and there is currently a template engine (ala codesmith) available in beta. Windows NT crashed. I am the Blue Screen of Death. No one hears your screams.
-
We are thinking about using a code generation tool for our project. Basically, we have a SQL Server database schema and we want to generate a data layer and GUI. Does anybody have any experience with code generation tools like CodeSmith, IronSpeed, TierDeveloper, etc? If so, how well did they work? Am I wasting my time looking for a code generation tool? Any advice is appreciated. Thanks!
I've used CodeSmith on a few projects and really liked the results. Since you are just working with templates you have complete control over the code that is generated. Just make sure you only work with the templates and never customize any of the code that is generated. I generated a simple data access layer and then later on added performance monitoring support to the template, just regened the dal for all the projects and it was added to all of them. Don't get me wrong, I could have done the same thing with a common base class and the right abstraction. However, I would have needed a good interface and design on the first try, which I probably would have made overly general or not the correct abstraction for this enhancement.
I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon