Deal of the Day

Home » Main » Manning Forums » 2003 » Code Generation in Action

Thread: This stuff is great

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Pages: 1 - Last Post: Feb 21, 2005 12:41 AM by: OldGreyTroll
import-bot

Posts: 20,296
Registered: 12/6/03
This stuff is great
Posted: Jan 20, 2004 5:07 PM
  Click to reply to this thread Reply

[Originally posted 9/22/03 by Anonymous]

Hi Jack,

I just wanted to thank for taking the time to write this book.

I have been puzzling over the issues of code generation ever since I discovered the CodeDOM capabilities in the Microsoft .Net framework, but I realise now that the approach I was taking was much more complex than it needed to be.

I really like the simplicity of the solutions you presented and I must confess I wouldn't have attempted something like UI generation until I read your chapter on the subject.

Cheers mate,
Neil

import-bot

Posts: 20,296
Registered: 12/6/03
Re: This stuff is great
Posted: Jan 20, 2004 5:08 PM   in response to: import-bot in response to: import-bot
  Click to reply to this thread Reply

[Originally posted 9/22/03 by Anonymous]

I'm glad you like it. Let us know if you have an code to share or recommendations.

OldGreyTroll

Posts: 1
From: Maryland
Registered: 2/21/05
Re: This stuff is great
Posted: Feb 21, 2005 12:41 AM   in response to: import-bot in response to: import-bot
  Click to reply to this thread Reply

I'd like to add my concurrance. I'm a very lazy programmer and I'm always looking for ways to indulge my laziness. I've had your book for a while now, but just started working through it this weekend. The startup cost of setting up and learning Ruby went on my list of things to do, but didn't get pushed to the top until now.

However, I did do a fast scan of your book when I first got it and it inspired me to go ahead and use the tools I was using at the time to get started. At this point I've got a 1600 line SQL stored procedure that reads a set of metadata describing my database and generates scripts to retrieve, insert, modify and delete records from tables. These scripts allow me to control access down to the record level using a role-based access control system. They allow me to have a consistant set of standard error checking. Most importantly they allow me to have a consistent interface for the entire system.

My most recent run of the entire system took about 25 secs to generate just under 160000 lines of SQL code.

(And now back to your book and Ruby....)

Legend
Gold: 300 + pts
Silver: 100 - 299 pts
Bronze: 25 - 99 pts
Manning Author
Manning Staff
Manning Developmental Editor