News for hackers. Stuff that matters.
Re:Callback Hell (2016) by Mithaldu on Wednesday February 15, 2017 @10:31AM (#13652654)
Please don't perpetuate the else silliness of the (intentionally bad) first example there. Stick a return in front of the log calls, lose the else, and unindent all following.
Re:Callback Hell (2016) by athenot on Wednesday February 15, 2017 @10:42AM (#13652729)
Yes, that is of course preferable. There are much better error handling strategies than what the example gave.

I was only commenting on the readability aspect, all other things being equal.