News for hackers. Stuff that matters.
Re:Comparing Node.js Promises, Try/Catch, Angular Zone.js an... by bajtos on Wednesday April 16, 2014 @12:46PM (#7598842)
That's not entirely true. If "db.insertUser()" is opening a database connection, who is going to close it on error?

The idea behind Zones for Node.js is to auto-attach new resources to the current zone, so that they can be cleaned when the zone exits.

AFAIK there is no solution for that at the moment.

Re:Comparing Node.js Promises, Try/Catch, Angular Zone.js an... by ulisesrmzroche on Wednesday April 16, 2014 @01:46PM (#7599263)
I'm thinking whatever db plugin you're using, but also this pseudo code actually has a lot of implicit things going in the background (koa/co, thunks, etc).

It makes for some readable app code though.