News for hackers. Stuff that matters.
Re:Node.js callbacks vs. promises vs. generators vs. async-a... by HyperMassive on Sunday March 04, 2018 @04:14PM (#16516789)
> That was the day I decided JS...

Why? surely having 47 promises and some on the same line is the authors fault?

Promise.prototype.then()'s callback function does not need to be written inline. At some point the author should have realised it hass become difficult to grok quickly and refactored them out using appropriate function names.

There are no comments on this comment yet.