Тёмный

How to Use Javascript Promises 

Decypher Media
Подписаться 20 тыс.
Просмотров 110 тыс.
50% 1

This screencast explains the Javascript Promise pattern at a very high level. Promises are a fundamental tool for modern Javascript development, but it's easy to get overwhelmed when first starting out.
All of the code is pseudo-code meant to make the concept of Promises easier to understand. In a real code base you probably want to use a promise library such as Q or Bluebird instead of using the native Javascript deferred object.

Наука

Опубликовано:

 

1 апр 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 163   
@capcadoi
@capcadoi 7 лет назад
It takes a special kind of intellect to explain a complicated abstract notion properly. You sir are the best I've seen.
@yevgeniyaterlyuk3114
@yevgeniyaterlyuk3114 8 месяцев назад
7 years later, this is still the best explanation on promises. Thank you!
@DecypherMedia
@DecypherMedia 8 месяцев назад
thanks, that made my day
@foxtools
@foxtools 7 лет назад
Watched a bunch of videos and still had no idea what Promises were and how they worked. Watched YOUR video and I GOT IT!!!! You did a spectacular job explaining how it worked and how to use it in different situations. Thank you for you video.
@harikumar-cq1je
@harikumar-cq1je 4 года назад
Waaaav, what an explanation! Only a few people on this planet can explain some things better. This video has finally cleared my question which I am having for a long time. God bless you.
@dorjeetsering937
@dorjeetsering937 7 лет назад
You explained the whole deferred and promise thing in such a simple way. Thank you sir. Though some of the methods used are obsolete now, but is a good stepping stone to understand the new style.
@DEVDerr
@DEVDerr 5 лет назад
Absolutely the best promise explanation I've ever seen so far. Congrats man!
@WholeNewLevel2018
@WholeNewLevel2018 7 лет назад
awesome explanation .... most people explain promises in very dry and abstract manner.... what make this tutorial standout is will thought off real world uses of promises and the examples .... this indeed the best video on promises out there ..... thanks so much and please keep up ....
@bruceweng3895
@bruceweng3895 7 лет назад
OMG this is the best promise tutorial I have ever seen! Thank you so much~
@mapzitm
@mapzitm 5 лет назад
This is simply the best tutorial on promises on the whole net! Thank you very much!
@kanishkasinghal5980
@kanishkasinghal5980 2 года назад
The most thorough yet succinct explanation
@jacobcoles1
@jacobcoles1 6 лет назад
Thank you! Most resources don't explain the structure behind the Promise object as you have done. 11/10.
@andrespineda7620
@andrespineda7620 6 лет назад
Thanks! Your video cleared up a lot of things that I was just taking for granted, I now understand how a Promise works at a much deeper level.
@barkgj
@barkgj 7 лет назад
Impressive how well you explained the concept of JS promises in such an easy-to-understand way, kudos to you!
@nikhilverma4976
@nikhilverma4976 7 лет назад
Never saw any video explain such concepts so effectively before. Subbed and liked.
@imfakeid
@imfakeid 8 лет назад
by far the best explanation on promises !!!!
@zjevander9739
@zjevander9739 6 лет назад
This tutorial is great! Succinct conceptual overview and many practical examples of promises in action. Much appreciated!
@zaheeryakub
@zaheeryakub 7 лет назад
Jordon, this is the best explanation, someone ever gave me.You are insanely brilliant.
@huibinma1081
@huibinma1081 4 года назад
you have done the best explanation of promise I have seen so far!! Thank you so much!!
@michaelchambers236
@michaelchambers236 6 лет назад
Wow! Incredibly complex information explained as simply and organized as possible. Thank you !
@dajuly20
@dajuly20 7 лет назад
wow. Amazing! You made it so clear within seconds. The comparison to a progress bar was the moment when it began to make sence for me :) Thanks!
@officially_leema
@officially_leema Год назад
6:07 The way you explained this piece, that the resolve is updating the value property just helped fill another gap in my understanding of promises. I'm still watching but i just wanted to note, because that was a super "Aha moment" for me, thankyou!
@devanshdwivedi8893
@devanshdwivedi8893 6 лет назад
This is a brilliant video! Absolutely to the point and the all the examples backed up their respective concepts very well. Thank you
@LewizW
@LewizW 6 лет назад
This is a great explanation. It was nice to see real life examples
@KaraMedema
@KaraMedema 3 года назад
I was having a hard time wrapping my brain around promises until I watched this video. Thank you for the great explanation!
@VishnuPrasadmsvp
@VishnuPrasadmsvp 7 лет назад
Awesome, I was so confused with Promises, and this helped me understand it better. Thank you Jordan Leigh
@Santanaebay
@Santanaebay 6 лет назад
Dude this is the best explanation on promises I have ever seen.
@ErnestGWilsonII
@ErnestGWilsonII 6 лет назад
Wow excellent video! I watched this in the past but I did not fully grasp the awesomeness! Thank you for taking the time to make this video and share it with all of us! I subscribed!
@spicyricecaker7514
@spicyricecaker7514 3 года назад
By far the best video on promises, thanks a lot!
@matthewsnow6317
@matthewsnow6317 7 лет назад
Great explanation! It really helped me understand how to use the Q library a lot better.
@PixelPoosher
@PixelPoosher 8 лет назад
Nice! you also taught me some react-native basics on a different video a couple weeks ago. Keep up the good work.
@windday2
@windday2 7 лет назад
totally the best explanation so far with the chart you mentioned in the video. Explanation should have those in the future
@thetecheart
@thetecheart 7 лет назад
Awesome tutorial on such a complex topic. Huge respect.
@cjcheshire
@cjcheshire 7 лет назад
Thanks for making this video. Very clear and thorough examples.
@fushipunk
@fushipunk 7 лет назад
this is it! thanks Jordan that was really helpfull! greetings from Venezuela, keep up the good work!
@badaljain77
@badaljain77 6 лет назад
Its really one of the best explanations I have seen so far!
@ameyapatil1139
@ameyapatil1139 5 лет назад
Some very very clear explanation out here. Brilliant !
@fateriddle14
@fateriddle14 7 лет назад
Holy shit. Best explanation hands down. Thank you, I finally get it.
@TorbenRudgaard
@TorbenRudgaard 7 лет назад
Great video - thanks for explaining the token thingy at the end.
@jamesjovalentine
@jamesjovalentine 4 года назад
I believe that progress bar analogy alone deserves a “like”
@iwswordpress
@iwswordpress 4 года назад
Awesome! not seen an explanation like this before.incredibly useful. thanks
@sighmanthethird
@sighmanthethird 7 лет назад
Really good explanation! Thanks a ton and keep up the good work!
@mikemackes6130
@mikemackes6130 7 лет назад
Great job! Really helped me get the concept. Thanks!
@AmandeepSingh-hd8iq
@AmandeepSingh-hd8iq 7 лет назад
You are the "Promise" God!! My search ends on this video.:)
@sathyaprabhagirish3595
@sathyaprabhagirish3595 7 лет назад
Amazing video, great practical example!!
@rosjio99
@rosjio99 6 лет назад
The information may be a bit outdated but the explanation on Promise functions and properties was very helpful! Good job!
@farukabdullamunshi8358
@farukabdullamunshi8358 4 года назад
You explained it greatly Man... Love it
@uml01
@uml01 5 лет назад
Very good demo and explanation. Thank you.
@luisfaria7015
@luisfaria7015 7 лет назад
Amazing tutorial. Excellent explanation.
@charliepapa665
@charliepapa665 6 лет назад
best explanation I've seen on the topic in youtube
@acuteclub7381
@acuteclub7381 6 лет назад
Finally so;meone who knws how to explain things...... thank you very mutch
@MiguelStevens
@MiguelStevens 7 лет назад
Great examples! Great video.
@kerron68
@kerron68 7 лет назад
one of the best explanations out there
@jatasya8948
@jatasya8948 6 лет назад
Awesome concept explanation, Thank you very much
@pavellankmiler1833
@pavellankmiler1833 8 лет назад
Thank you so much ! Good explanation. Keep doing it :)
@sukantamangal
@sukantamangal 7 лет назад
Thanks for explaining so well that any js beginner can understand this.
@aikidoshi007
@aikidoshi007 7 лет назад
So much info so well presented, well done mate. I can see clearly now ... :-)
@Varuag89b
@Varuag89b 7 лет назад
great stuff, really helpful. keep up the good work.
@srinivasan1482
@srinivasan1482 7 лет назад
I got a promise concept in the easy term.Thanks Jordan.
@bhaktipasaribu
@bhaktipasaribu 7 лет назад
Very good explanation! Thanks
@cranial3308
@cranial3308 5 лет назад
Dude, thank you sooo much, such a good explination
@natesh1
@natesh1 6 лет назад
Best explaination on RU-vid
@starman9000
@starman9000 7 лет назад
Jordan, Excellent explanation, Thank you :)
@judy5367
@judy5367 6 лет назад
Pretty good explanation, Thank you very much
@nicolasortiz2638
@nicolasortiz2638 7 лет назад
Amazing and wonderful explanation
@kaysi768
@kaysi768 7 лет назад
honestly one of the best online
@utpalsharma3824
@utpalsharma3824 6 лет назад
woooww !! that was the best explanation ! thanks a lot .
@stopfakingit4846
@stopfakingit4846 6 лет назад
Nice one dude. Thanks for sharing I appreciate. You are one of them who can teach ;)
@zhiyudu1106
@zhiyudu1106 8 лет назад
nice tutorial! helps a lot!
@natasapeic1719
@natasapeic1719 7 лет назад
Thank you so much!!! This all makes sense now!
@chintandd
@chintandd 8 лет назад
Nicely explained. Thanks...
@mohitbansal6105
@mohitbansal6105 6 лет назад
Thanks a lot brother. The video is really very helpful.
@slidenerd
@slidenerd 7 лет назад
that was TOTALLY badass mate, if you can explain it , you understand it well enough said Einstein :)
@Nicholas108108
@Nicholas108108 7 лет назад
Which explains why he never gave class or lectures. Or why there are no videos of him talking. Because he was a fraud.
@joe44850
@joe44850 7 лет назад
Yeah. The guy born in 1879 has no videos, so...probably a fraud.
@Nicholas108108
@Nicholas108108 7 лет назад
Joe Bloggs Because, you know, it's not like the technology was being put to use for decades by the time he was hailed as some sort of incredible genius. Actually, people of his time didn't consider him a genius. Did you know that? Wonder why.
@joe44850
@joe44850 7 лет назад
Maybe you meant film, not video, which was invented in 1951. But what do I know, I'm talking to the guy who can discredit Albert Einstein :-)
@Nicholas108108
@Nicholas108108 7 лет назад
Joe Bloggs lolwut. If you're going to go down that route then WHY won't you mention the fact that a pair of French fellows literally invented everything Einstein wrote down (in his pathetic broken language and math) in that famous first paper? What to speak of Hilbert and General Relativity. Which leaves this "great man's contribution" where exactly? Well after you give Planck credit for the P-E effect, then you're left with Brownian motion. Yeah, give Einstein that one. The phenomenon named after someone else. You want to be pedantic about terminology, fine, but the fact is that he is just a jewish poster boy and he was propped up to be that as a form of propaganda. GO AND READ HIS ACTUAL PAPERS. THEY ARE BAAAAAD. (and don't give me shit like, "hey man, that was turn of the century blah blah". Compare them to Heisenberg, Planck, or even Thompson. Einstein's actual work output is a joke. And the myth around him is unbelievably inaccurate)
@imbesrs
@imbesrs 2 года назад
This is easily the best explanation of promises on youtube holy fuck. And trust me when I say i watched them all lol.
@justinstuart3660
@justinstuart3660 7 лет назад
Dude bro... Nicely done.
@BlueIceAce2015
@BlueIceAce2015 5 лет назад
Awesome, thanks!
@danielchazan4011
@danielchazan4011 7 лет назад
A very good explaination thanks !!!!
@SuperTatigo
@SuperTatigo 6 лет назад
Great info here! Thanks
@mallareddy6065
@mallareddy6065 5 лет назад
Great Explanation
@RajeshKumar-kl5ci
@RajeshKumar-kl5ci 7 лет назад
It' really helpful to understand promise, cheers :)
@edenr1988
@edenr1988 7 лет назад
great tutorial ! thanks!
@venkateshm1833
@venkateshm1833 7 лет назад
Thank you Jordan ...
@muhammedfuatnuroglu3025
@muhammedfuatnuroglu3025 7 лет назад
AWESOME , Thank you .
@sol0matrix
@sol0matrix 7 лет назад
great post thanks this explains alot and gave me a clear understanding slides definitely helps :)
@superdoubt
@superdoubt 6 лет назад
Excellent! Thanks!
@andrew5407
@andrew5407 6 лет назад
Excellent!
@rogerwprice
@rogerwprice 7 лет назад
Fabulous. Thanks. Super clear...
@turbo2ltr
@turbo2ltr 3 года назад
This was very good. I struggle the most with the fact that the code does not run linearly. You can have functions that are defined inline but run at a later time which I find confusing. I much prefer linear code.. I have a question though.. At 18:52, in order to chain a then, don't you have to return a promise from the previous then? The json parse it is returning is not promise or did I miss something?
@Softwarecom
@Softwarecom 4 года назад
Wow, Thank you so much !
@dinkersrivastava9429
@dinkersrivastava9429 6 лет назад
Super one bro, so cool and nice video with such a nice expiration. Just hats off to you bro... 🙏
@Jonathan-od5xc
@Jonathan-od5xc 5 лет назад
Thank you very much!!!
@MoT-MasterOfThings
@MoT-MasterOfThings 6 лет назад
Ohh very clear and neat explaination
@aaabbb-qv4ff
@aaabbb-qv4ff 4 года назад
This is great, an update video (even with more complicated examples - like async recursion) about defer would be appreciated.
@lightbluedev
@lightbluedev 5 лет назад
Thank you!
@CryptoRootz
@CryptoRootz 4 года назад
great explanation
@RyoussefR
@RyoussefR 7 лет назад
Amazing thanks, keep going
@lulzimfazlija
@lulzimfazlija 8 лет назад
well done explained :)
@rahuldwivedi4758
@rahuldwivedi4758 7 лет назад
when I try to actually write deferred in chrome console it says: Uncaught ReferenceError: deferred is not defined Is it because it's deprecated now?
@uusa35
@uusa35 8 лет назад
thank you so much
@noturno99
@noturno99 7 лет назад
Good video!
@VeslorTV
@VeslorTV 7 лет назад
YOU ARE A BEAST
Далее
16.11: Promises Part 1 - Topics of JavaScript/ES6
24:53
Stray Kids <ATE> UNVEIL : TRACK "MOUNTAINS"
00:59
Просмотров 949 тыс.
JavaScript Promises  -- Tutorial for Beginners
37:05
Просмотров 109 тыс.
The Mighty Deferred Promise - An Interview Recount
7:51
JavaScript’s Deferred Promise Pattern
4:09
Просмотров 11 тыс.
Handling Rejected Promises
20:57
Просмотров 3 тыс.