Code/Tea/Etc...

Duncan Mackenzie has too much time on his hands

I've never used it to its full potential... and I still wouldn't do without it...

CodeSmith 2.5 is available, and although I've mentioned it in a few articles on MSDN already, I have to tell you again... I use this utility all the time.

It is fairly obvious, if you look at the code from any one of my articles, that I use Code Smith to generate my strongly typed collections in almost every single project. What isn't obvious is how often I use it in my own projects that never get published (internal to Microsoft, or for myself)... it is invaluable and I've never even created my own templates. From what I understand, I'm missing out on so much potential time-saving it is almost silly that I haven't looked at creating my own templates yet, but being able to quickly create my Jobs collection for my custom Job class (very useful if you are planning to then bind the Jobs collection to a DataGrid) has been reason enough to install Code Smith on every development machine I set up. Anyway, the crazy thing is that Eric (creator of Code Smith) just came out with Code Smith Professional (or Studio, or something... :) ), which appears to do even more (for $$, sorry folks)... and I hadn't even run out of things to build with the free version (which hasn't gone away... no worries) ... yikes. Well, I should really spend some time looking at it... I hate the thought that I could be saving a ton of time and I'm not!

What about you folks, how much do you use Code Generation tools in general? Do you use CodeSmith? What about Kathleen Dollard's book (Code Generation in .NET by APress)? Read it, loved it, hated it?
Published Tuesday, March 16, 2004 12:04 AM by Duncanma

Comments

 

Moshe Eshel said:

To my shame, my company hasn't started yet to develop (except for a few pet projects of mine) .NET applications

Most of the good code generators are for .NET only, and for us it is not much help.

I hope that in the near future we'll start using .NET more, or maybe I'll leave the company and go somewhere that does :)

Anyway from my very short experience, code generation is a great thing, mostly for saving time, and typos - I still find myself coding a lot, but usually that is logic and not the grunt work of calling a stored procedure...
March 16, 2004 3:27 AM
 

Jason Alexander said:

I'm an avid CodeSmith junkie, personally. I use it to build out all my CRUD work, as well as documentation (http://www.ngallery.org/dbdocumenter/demo/).

I love it. Though, I'm a bit biased - I work with Eric, so I get to put in lots of direct input and requests. And, I can pester him daily while we're at lunch. :)
March 16, 2004 7:17 AM
 

Forever Geek said:

CodeSmith is a code generation tool. You create templates that specify the code to generate, and add properties (such as class name, namespace, etc.) to the template to further customize the output. It gets even better - you can even...
March 27, 2004 2:58 PM
Anonymous comments are disabled

This Blog

Syndication

News

This blog has moved to my own VB site

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker