Code Generation - the payoff

Today was the day I was waiting for. 

The situation:  Business objects are written, data access layer is stable, stored procedures are up-to-date and the tables are stable and contain data...then it happens -> need to get rid of business properties x, y, z  and add business properties x1, y2.  No problem, right?

Assessment of the change: 

  • 3 business objects
  • 1 interface
  • 1 table
  • 10+ stored procedures

Total time it took to make the changes: less than 5 minutes!!!!

posted on Wednesday, November 24, 2004 2:48 PM

Feedback

# re: Code Generation - the payoff

what are you using for code generation? I'm looking at alternatives right now.
11/24/2004 10:18 AM | Scott C. Reynolds

# re: Code Generation - the payoff

Scott:

Our starting point was: http://www.amazon.com/exec/obidos/tg/detail/-/1590591372/qid=1101338678/sr=8-1/ref=pd_csp_1/104-9307069-2135153?v=glance&s=books&n=507846

Kathleen provides a great foundation and starting point. Especially if you are use to xml and xslt.
11/24/2004 10:25 AM | Jason Haley

# re: Code Generation - the payoff

I should mention why we chose Kathleen's methodology (that is what I call it anyways) over codesmith.

We saw codesmith as being a great way to get a great and fast start on a code base, but kathleen has little different view. She suggests that you should be able to regenerate your generated code AT ANY TIME AND NOT BREAK ANYTHING ... that fit great into what we were going for.
11/24/2004 10:27 AM | Jason Haley

# re: Code Generation - the payoff

thanks man I appreciate it.

I'm looking into CodeSmith. Also checking out Deklarit. Any experience with Deklarit?
11/24/2004 1:00 PM | Scott C. Reynolds

# re: Code Generation - the payoff

In our current project, we're using LLBLGen Pro to generate entities and typed views from the database and a custom made, CodeSmith based generator that (re)generates a application 'module' skeleton from parameters, consisting of several files (web user controls, facade, webservice, and business object), included automagically in the solution. Generally about 11 seconds work!

Generation rules!
11/24/2004 8:23 PM | Victor Vogelpoel

Post Comment

Title  
Name  
Url
Comment   
Please enter the following code into the box below to stop spammers

  
Enter Code Here *