News for hackers. Stuff that matters.
Re:Write logic, not mechanics by sergimansilla on Thursday April 19, 2012 @09:08AM (#3862760)
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.
Re:Write logic, not mechanics by lobo_tuerto on Thursday April 19, 2012 @10:24AM (#3863114)
I found this very useful for architecting larga javascript aps: http://speakerdeck.com/u/addyosmani/p/large-scale-javascript...
Re:Write logic, not mechanics by IsTom on Thursday April 19, 2012 @03:06PM (#3864590)
CPS is best suited for intermediate code, it's not something to be written/read by humans as it's basically the same as goto.