Diff: callbacks vs promises (the latter is < 1/2 the lines of code for this function) PS. JS generated from Coffee.pic.twitter.com/9qlxRPlYcP
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Diff: callbacks vs promises (the latter is < 1/2 the lines of code for this function) PS. JS generated from Coffee.pic.twitter.com/9qlxRPlYcP
(Really enjoying playing w bluebird in node. Can’t say I’ve got my head around everything with promises yet, but most of it makes sense) :)
(Still not sure I entirely understand how best to handle errors yet, for example.)
@aral Replace promises with observable data sequences and RxJs. Once you wrap your head around it you will never look back :)
@mindcrash I’m not a huge fan of reactive — I find that it obscures intent too much. Promises on the edge of what I’m willing to accept…
@aral It does have its place though. Promises are async item centric. Observables are async sequence centric (big difference)
@aral I stopped reading at mindfuck :D
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.