3 ms·
Well put. It still puzzles me that promises and/or CPS don't have a greater adoption in the JavaScript community. I guess that what happens is that the concept
by sergimansilla 15y ago
Well put. It still puzzles me that promises and/or CPS don't have a greater adoption in the JavaScript community. I guess that what happens is that the concept of a callback is a very easy to understand one, but a system becomes more complicated and cumbersome (exponentially, I would say) with every new callback that is added to it. The real problem comes when creating big async applications in JavaScript based entirely in callbacks, as it is the norm now specially in NodeJS projects. Using callbacks to build complex applications is a sure way to un-maintainability.
- lobo_tuerto 15y agoI found this very useful for architecting larga javascript aps: http://speakerdeck.com/u/addyosmani/p/large-scale-javascript-application-architecture http://speakerdeck.com/u/addyosmani/p/large-scale-javascript...
- IsTom 15y agoCPS is best suited for intermediate code, it's not something to be written/read by humans as it's basically the same as goto.