Shawn wrote:
> I have a project that I worked on some time ago that would read a database
> format and then generate Cold Fusion code for talking to the database.
> Basically it does the grunt work of getting the base code in place.  I'm
> looking at writing the next evolution of this that would handle any
> scripting language (cuz I hate monotonous coding - doing the same thing
> again and again and again for each table in the database), but thought I'd
> take a look at what the open source world may have available.
> 
> Thus far, there seem to be some products similar to what I want to do, but
> costing $400+ per user.  The open source products I found seem to be more
> macros to generate code for you, but not necesarily based on a data model.
> Does anyone know of any decent tools out there for this sort of thing?
> Thanks.

you might find something at: http://www.codegeneration.net/generators.php

I think most of the model based code generators are commercial, with the
buzzword-o-tha-day being MDA.  also, I think most of the open source code
generators are in the realm of macros, templates, and the popular
roll-your-own codegen framework.  I don't know of a de facto language,
macro, or template system for doing code generation, people pick the 
language or template system that works best for them.

I've done some code generation with xml/xslt, perl, and ruby.  xml is
mostly nice for describing models, but xslt 1.0 sucks.  I'd recommend xml
for model, and your xml processing language of choice.

see this for using xml and ruby instead of xml and xslt:

http://martinfowler.com/bliki/MovingAwayFromXslt.html

Dave


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to