Eric Wise

Sponsors

The Lounge

Wicked Cool Jobs

Blogs I Read

Fun & Games

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Codesmith rocks!

If you haven't already purchased a copy of codesmith, please do so, I'll wait...

This is by far the best bang for my buck I've ever gotten out of a non microsoft tool.  Case in point: I've been making tweaks to the database schema for Easy Assets .NET adding fields to various tables and changing some data types.  In the old days I'd have to go through all my basic stored procedures and tweak them as well.

Not so!  Thanks to CodeSmith and the tweaks I made to the AllStoredProcedures.cst and StoredProcedures.cst templates I was able to regenerate all 80 of my stored procedures in less than 3 minutes.  Tweaking this by hand would have taken hours.

Also, if you don't want to share this with your co-workers (not that I condone such deception), your incredible gains in productivity can make you look like a super wiz.  Or you could just generate most of your code and spend a week reading CodeBetter.com then turning in the project early anyway...


Posted Mon, Feb 28 2005 8:02 PM by Eric Wise

[Advertisement]

Comments

David Neal wrote re: Codesmith rocks!
on Mon, Feb 28 2005 9:32 PM
Shhh! My co-workers might catch on!

CodeSmith rocks, indeed. And rocks absolutely. I've created my own custom templates that I can use to generate all my stored procedures, DAL classes, and entity classes with a few clicks of a mouse. These classes utilize the Microsoft Application Blocks for Data Access and Exception Management, among other things I've create myself. This provides my projects with a solid, tested framework so that I can focus on the good stuff :)
Geoff Appleby wrote re: Codesmith rocks!
on Mon, Feb 28 2005 11:21 PM
So unlike ReSharper, does this one work with VB?
Mark Bonafe wrote re: Codesmith rocks!
on Tue, Mar 1 2005 5:58 AM
I've been using CodeSmith for over a year now and I don't think I can live without it!

Geoff: CodeSmith will generate any kind of code you need. You create your template (or tweak any of the many included) and it generates the text. It's very "ASP like" in that it uses substitution to create output. Sounds simplistic, but you can generate reams of "foundational" type code in seconds. You'll regret it if you don't check it out.
Brendan Tompkins wrote re: Codesmith rocks!
on Tue, Mar 1 2005 7:26 AM
Yes. Codesmith Rocks so hard, that I've been thinking of renaming the CodeBetter.Com site to "CodeBetter.Com - CodeSmith Rocks!"
Howard van Rooijen wrote re: Codesmith rocks!
on Tue, Mar 1 2005 2:47 PM
I posted about my experiences with CodeSmith and how much time it saved me with a hobby project:

http://blogs.conchango.com/howardvanrooijen/archive/2005/01/06/703.aspx
TrackBack wrote CodeSmith rocks!
on Sun, Mar 6 2005 9:51 PM
TrackBack wrote CodeSmith rocks!
on Sun, Mar 6 2005 9:53 PM
jdvolz wrote re: Codesmith rocks!
on Fri, Jan 20 2006 3:51 AM
While I haven't gotten a chance to test out CodeSmith (and apparently, I need to get on that right away!) I am a big supporter of the concept of code generation. Not only is code that writes code sexy as a concept, but it can save you an immense amount of time, and very possibly get your out of repitive motion injuries to boot!

I find it is especially powerful to generate templates or code generators for the tasks that are very common in the applications you are designing. For example, anytime someone wants a field added to the database, that should be a simple button click on a code generator.

Also, the efficientcy gain is two-fold because you don't have to write the code in the first place, and you also don't have to debug the code afterwards either. Even if you did happen to find a bug in your pattern, to reproduce all the effected code with the updated bug fix, you just rerun the code generator.

The first time you write 20,000 lines of data access layer code in a minute, you will be hooked on code generation.
Danilo wrote re: Codesmith rocks!
on Fri, Nov 24 2006 8:44 PM

There are a new open source alternative to CodeSmith, this is SmartCode

look in http://www.codeproject.com/useritems/SmartCode-Code_Generation.asp

Devlicio.us