News for hackers. Stuff that matters.
Re:Avoid Null Checks by Replacing Finders with Tellers by thedufer on Monday June 17, 2013 @02:57PM (#5895166)
Coming from working with node.js, this feels very strange. How do I call a callback in the else case? It looks nice and all, but I don't see a way to make this work if db calls are asynchronous.

Any ideas?

Re:Avoid Null Checks by Replacing Finders with Tellers by anonymoushn on Monday June 17, 2013 @03:29PM (#5895351)
Pass two callbacks, or make your callback begin with if(err). Which looks suspiciously like a null check.