Re:I love async, but I can't code like this
by flashingpumpkin on Thursday January 13, 2011 @08:13PM
(#2102080)
We've adopted a way that allows us to do basically this:
Each function takes as first argument an error and as last a callback. If there's
an error, the function just passes the error up the callback stack until it gets
dealed with.
You can't pull that off if your code is heavily object oriented though:
Breaking your code/api up with modules instead into classes fixes that.
[ Parent
| on HN ]
There are no comments on this comment yet.