markjgsmith

Linkblog

Common Javascript Promise mistakes every beginner should know and avoid - I liked this article, I’m still on the whole not loving Javascript Promises though, there are all these weird edge cases with error handling, the logic get split into several different places with async functions, try/catch blocks, resolve/reject, the flow control is just not as comprehensive as caolan/async, and in a lot of cases I think it’s not much better in terms of ledgeability and as a defense against callback hell - callbacks for all the complaints are simple and IMO quite wysiwyg, easy to step through in a debugger - Currently I much prefer callbacks to Promises, at least in nodejs, I find it weird that everyone is mad for Promisesgosink.in #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.