classical geek

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.

2 Comments

  1. a

    classical geek » Blog Archive » Metaprogramming Javascript a

    Trackback by a — October 16, 2007 @ 4:47 pm

  2. a

    a

    Trackback by a — October 22, 2007 @ 7:36 pm

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by WordPress, Supported by SaveOnRefinance.com