Node.js callbacks vs. promises vs. generators vs. async-await
smalldata.tech
smalldata.tech
That was the day I decided JS had gotten way too far up it's own ass and abandoned my career in web development. Every day that goes by makes it seem like a better and better decision.
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.
This is exactly what async await is trying to simplify :)
---
Great article OP. Thank you very much. I remember using Bluebird and sharing the sentiments of the comment which I am replying to.
Still a long way to go but I'm happy that the content is also appreciated!