Hacker Timesnew | past | comments | ask | show | jobs | submitlogin
High Performance Web Sites: Crockford, webhosting, online dating, JSON, alert (stevesouders.com)
68 points by twampss on Dec 10, 2009 | hide | past | favorite | 15 comments


Genius. I love the moment of brain-freeze: Wait, how do I remove the .. I can't .. oh!


Crockford is such a lovable asshole.


Crockford 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.


Don'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


I admire Crockford, but couldn't he just block by HTTP referrer with a simple .htaccess file?


You have to admit that Crockford's method is more fun.


And more people learn their lesson.


And a single, one-time fix takes care of everyone.


  <script>
   oldalert = window.alert;
   window.alert = function() {};
  </script>
  <script src="http://json.org/json.js"></script>
  <script>
   window.alert = oldalert;
  </script>


If someone knows enough to do that, they probably also know to copy the file onto their own server.


Heh. I didn't know you could do that.



Crockford would then reply with: (inside his js file)

  window.location = "http://www.meatspin.com"; //that'll teach em


I don't think that would have made him many friends.


Douglas Crockford keeps making so many new friends that when he loops on CROCKFORD.friends.length, he creates an infinite loop.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: