News for hackers. Stuff that matters.

nullobject

Re:FKit: Everyday Functional Programming in JavaScript on Thursday October 09, 2014 @10:36PM (#8435971)
Thanks moberemk. I'm trying to take what lodash/underscore started to the next logical step with FKit.
Re:Rewiring the JavaScript Console in CodePen on Tuesday September 16, 2014 @04:25PM (#8326889)
You're mostly right.

The console var is assigned the result of an immediately-invoked anonymous function (http://benalman.com/news/2010/11/immediately-invoked-functio...).

The result of this function is an object which contains the console functions (log, warn, error, etc). Moreover, these functions only exist inside the scope of the anonymous function, so the only way to access them is through the returned object. This prevents the global namespace from being polluted.

So when you call console.log('hello'), you're applying one of those functions in the object returned by the anonymous function.

Re:Rewiring the JavaScript Console in CodePen on Tuesday September 16, 2014 @04:10PM (#8326809)
Thanks, hope you find it useful.
Re:Convert github issues into pull requests on Tuesday January 29, 2013 @11:06PM (#5138008)
Nice, it's a shame this isn't supported in the GitHub web interface.
Re:Hello Haskell, Goodbye Scala on Tuesday January 22, 2013 @05:31PM (#5100051)
The course material is still available, although you'll need to sign up for a Coursera account. It also looks like they're running another course in March 2013.

https://class.coursera.org/progfun-2012-001/class/index