News for hackers. Stuff that matters.
Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by tomp on Friday February 24, 2012 @01:41PM (#3630345)
> JavaScript is an object-oriented languages; use objects! They make async painless.

In the example above, you're unable to use ''this'' in the ''dataGot'' function (when invoked as a callback).

Object orientedness is very easy to get wrong in JavaScript, if you're coming from C++/Java/Python background.

Re:Went Off The Rails: Why I'm Rebuilding Archaeopteryx In C... by MatthewPhillips on Friday February 24, 2012 @01:52PM (#3630399)
Right, I excluded the bind for the sake of simplicity.

I also forgot that it's this.dataGot. dataGot doesn't exist in that context :)