5 ms·
High Performance Web Sites: Crockford, webhosting, online dating, JSON, alert
- jeremyw 17y agoGenius. I love the moment of brain-freeze: Wait, how do I remove the .. I can't .. oh!
- nym 17y agoCrockford is such a lovable asshole.
- mnemonik 17y agoCrockford is not the asshole at all in this situation! He kindly has written a json encoder/decoder and given it away for free (and is basically the reason why json is popular today) and these online booty call assholes (note that they are the assholes in this situation) are paying him back by putting all the load on his servers while they reap the benefits of his hard work. Edit: Maybe I'm overreacting to your comment, but this stuff just makes me angry.
- nym 17y agoDon't take it so seriously, I think Crockford is awesome, and has every right to include an alert into his script. I'm just sore from all those times JSLint hurt my feelings sniff sniff
- alecco 17y agoI admire Crockford, but couldn't he just block by HTTP referrer with a simple .htaccess file?
- RyanMcGreal 17y agoYou have to admit that Crockford's method is more fun.
- iamwil 17y agoAnd more people learn their lesson.
- RyanMcGreal 17y agoAnd a single, one-time fix takes care of everyone.
- bumblebird 17y ago<script> oldalert = window.alert; window.alert = function() {}; </script> <script src="http://json.org/json.js"></script> <script> window.alert = oldalert; </script>
- ionfish 17y agoIf someone knows enough to do that, they probably also know to copy the file onto their own server.
- RyanMcGreal 17y agoHeh. I didn't know you could do that.
- ionfish 17y agoThat's how jQuery.noConflict() works. http://github.com/jquery/jquery/blob/master/src/core.js#L333-341 http://github.com/jquery/jquery/blob/master/src/core.js#L333...
- veemjeem 17y agoCrockford would then reply with: (inside his js file) window.location = "http://www.meatspin.com"; //that'll teach em
- Tichy 17y agoI don't think that would have made him many friends.
- nym 17y agoDouglas Crockford keeps making so many new friends that when he loops on CROCKFORD.friends.length, he creates an infinite loop.
- deleted 17y ago[deleted]