Metaprogramming Javascript
Within a couple of weeks of almost getting my head around Ruby meta-classes, here’s a link to an interesting presentation on metaprogramming Javascript (in PDF format) by Adam McCrea. I’m not completely convinced that
show("brutus").when("us-state").is("Ohio,Michigan")
really qualifies as a DSL - reminiscent of Prototype’s somewhat cheesy Try.these() - but it’s a pretty mean feat of coding nonetheless.
a
classical geek » Blog Archive » Metaprogramming Javascript a
Trackback by a — October 16, 2007 @ 4:47 pm
a
a
Trackback by a — October 22, 2007 @ 7:36 pm