4 ms·
Whoa. We've shifted from the (simpler) continuation-passing style with callbacks to this. Is this really worth it? Honestly, I don't think I like the whole idea
by gcr 13y ago
Whoa. We've shifted from the (simpler) continuation-passing style with callbacks to this. Is this really worth it? Honestly, I don't think I like the whole idea of promises. What do we gain from this besides technical debt?
- mkoryak 13y agodo the words "callback hell" mean anything to you?
- zoomerang 13y agoCallbacks seem simpler in a lot of these examples because they aren't really showing the power of promises. Promises allow you to chain much more complex flows of information together in a way that would result in a mess of spaghetticode if attempted using callbacks.
- dsego 13y agoI suggest watching: Forbes Lindesay: Promises and Generators: control flow utopia -- JSConf EU 2013 https://www.youtube.com/watch?v=qbKWsbJ76-s https://www.youtube.com/watch?v=qbKWsbJ76-s