From: lostboard2001@... (gene tan) Date: 2004-11-23T16:43:02+09:00 Subject: Re: Typical/idiomatic examples of dynamic code generation with Ruby? ERb and REXML: http://www.amazon.com/exec/obidos/tg/detail/-/1930110979/102-8887207-7717754?v=glance Iwan van der Kleyn wrote in message news:<41A237AF.8070105@none.net>... > Thanks for the tips. Today I got the Pickaxe (2004 edition) and I found > the relevant references. I'll be playing around with it for a while. In > the paper I'm comparing SQLObject (Python object-relational mapper, > kind like ActiveRecords I guess) which uses lots of metaclass wizzardry. > Although you would be able to something similar in Java, it would be far > less natural or easy to the enduser (programmer) and it would be > absolutely hell to implement. I'm hoping to come with some nice examples. > > Look in Google for some nice references when searching for "Java dynamic > code generation". The way to do this in Java would be through "regular" > code generation though, which would be generated by a special tool like > XDoclet at compile time. > > > It seem that your paper will be very interesting.. I even wonder how > > static languages handle this situations. > > With luck it will be released under an Open Conent license in January. > > Thanks again, > > Iwan