ritter.vg
super cool javascript hackery
11 Oct 2009 11:08:23 EST

This is a post I've had in the works for months now. It's about modifying javascript functions on the fly. I know, that's old hat, you can replace the function to do whatever. That's not what I'm talking about. I'm talking about modifying the function in place to do something slightly different... using string manipulation. I know, horrible idea, ridiculous maintenance, tons of regressions. I'm not advocating it's use - I'm saying it's damn cool. And what's more, javascript is the only language you can do it in (that I've heard of or seen). So check it out, and decry my abuse of the language and see how I show you that you can't do it in Lisp. Really.

Comments
Add a comment...
required
required, hidden, gravatared

required, markdown enabled (help)
you type:you see:
*italics*italics
**bold**bold
[stolen from reddit!](http://reddit.com)stolen from reddit!
* item 1
* item 2
* item 3
  • item 1
  • item 2
  • item 3
> quoted text
quoted text
Lines starting with four spaces
are treated like code:

    if 1 * 2 < 3:
        print "hello, world!"
Lines starting with four spaces
are treated like code:
if 1 * 2 < 3:
    print "hello, world!"