Hi there,
I'm writing a paper on the "rediscovery of dynamic languages".
Definition issues aside (what *is* a "dynamic" language, anyway?), in
it I try to show how "old" (Smalltalk, Lisp) and "new" (Python, Ruby)
programming languages are vastly superior for the cost-effective
development of scalable and secure applications compared with static
languages like C/C++ and half-breeds like Java and C#. Nothing
original for sure, but then I again I'm trying to postulate some
convincing arguments for a non-geek, managerial audience.
In the paper I'm comparing "idiomatic" examples of how these languages
deal with common problems. Problem is, I'm quite new with Ruby and I'm
a bit at a loss for examples on how to show Ruby's strengths with
dynamic code generation (metaprogramming). That is often mentioned as one of Ruby's strengths. Don't get me wrong, I've found that Ruby has got the necesarry nuts and bolts but I couldn't really figure out what I could do with it, what I could not easily do with Python as well.
So my question: do you know of any examples on the subject of dynamic
code generation which would be typical for Ruby and could not be
easily implemented in languages like Python?
Regards,
Iwan