http://keybase5btp2qikoau6u326pvotn47gb55mo6fjxxyxdoywiinomr5id.onion/blog/2014-09-17/error-handling-in-javascript
then cb err else cb null , body This is not a contrived example, it was literally the first one I thought of.
I hate this code for several reasons: it's hard to read; it's hard refactor; there are
repeated calls to cb , any one of which might be forgotten and can break the program;
it's brittle and won't compose well with standard language features, like if and for .