News for hackers. Stuff that matters.
Re:Google & the Future of JavaScript by geraldalewis on Monday September 12, 2011 @09:39PM (#2989599)
I'm looking forward to discussing this, but in the meantime, can anyone parse "Similarly, I think we can find a way to repair “this” binding foot-guns with softly-bound “this”." for me? I don't understand what "binding foot-guns" are.
Re:Google & the Future of JavaScript by othermaciej on Monday September 12, 2011 @09:45PM (#2989614)
What he means is:

1) "this" binding is dangerous - you can easily shoot yourself in the foot with it (it is a "foot-gun").

2) "this" binding can probably be repaired with softly-bound "this".

There's no such thing as "binding foot-guns", the phrase breaks down between "binding" and "foot-". But "'this' binding" and "foot-gun" are both somewhat obscure phrases so this probably was not as clear as it could have been.

Re:Google & the Future of JavaScript by geraldalewis on Tuesday September 13, 2011 @05:41AM (#2990666)
Thanks! I hadn't come across the foot-gun meme before (http://web.mit.edu/~axch/www/footshoot.html).
Re:Google & the Future of JavaScript by InclinedPlane on Monday September 12, 2011 @10:20PM (#2989687)
He means foot-guns of the this-binding variety.
Re:Google & the Future of JavaScript by AndrewDucker on Tuesday September 13, 2011 @05:36AM (#2990658)
foot-guns are guns used to shoot yourself in the foot. Binding is a complex thing to get right, and it sounds like putting the "this" reference into Javascript correctly so it doesn't cause problems (and cause you to metaphorically shoot yourself in the foot) is requiring effort.