Cleaning Up JavaScript Callbacks With Promises

preview_player
Показать описание
I'm using Icenium Everlive as the data back-end, and I've made a bit of a mess in my code with too many nested callbacks. Fortunately, Everlive returns promises to me from many of it's API calls. To clean up the code, then, I'll give you a whirlwind tour of some method chaining that you can do with promises, in JavaScript.
Рекомендации по теме
Комментарии
Автор

Love the way you code Derick! Btw thanks for all you tuts (Backbone exp)

Boyyce
Автор

Really great quick explanation. Thanks!

TheSomeguy
Автор

well seems like the async await feature from babel.js and a few other libraries is EVEN more cleaner than promises, i am waiting for it, nice video

slidenerd
Автор

That typo was driving me bonkers for like six minutes.

stanulam
Автор

Are you using rsvp.js for promise implementation?

bhattacharyyapulak
Автор

guy can u please share with us source code? help please

TechGeniusHubrw
join shbcf.ru