Better HN
topnewbestaskshowjobs
Log inSign up

a__remie

3 karma · joined May 10, 2013 (13y ago) · 3 submissions

Call me back Node
Submissions

comment 13y ago · link · parent

finally, welcome in the 21st century.

comment 13y ago · link · parent

Nesting is not the problem, you see what you're doing (when you perform an async io request). And you still have the "if (e) return cb(e)" line... And on top of that, it does not look better.

comment 13y ago · link · parent

cbs - cbSucces cbe - cbError

replaces all the "if (e) return cb(e)" lines with cbe when you call the async function.

A whole abstraction over js just because of this, running away from the problem...instead of solving it on the spot, keep running.