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.
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.
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.
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 ....
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!
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.
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)
Is this tutorial still valid today (Sept 2018)? I tried to use the first Chrome DevTools(F12) statement var deferred = Promise.defer() and I got an error ""Promise.defer is not a function" I
This is really good. However, is there any reason why we are learning about the whole deferred object thing? Is that just for illustration purposes, or is this video old? From what it looks like (MDN), use of deferred objects with promise.defer() is deprecated.
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!
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?
Hi, after many many hours of watching videos that explained Promises, this is still by far the best video on the topic. I only have 1 question that hope anyone can clarify. In any example where one promise .then() method returns another promise and the code just keeps chaining the .then() functions, i assume each .then is acting on different promises objects. If the chain of promises ended with a .catch() function, is this catch function only catching error on the last return promise object, or all promises object in the chain. If it catches all, how does it work that way? What allows the early promises in the chain to see the defined catch function down on a later promise and share that function? Thanks for helping.
Excellent, I am a big fan of bluebird and hav been using it for a while now, but didn't exactly grasp all of what promises do, now i get it. One question, how would this work together with async/await?
Hey, could I talk to you? I am new to JS let alone ES6 but I need to store and get JSON information and use the objects for logic and view. I'm a little over my head. Trying not to bloat up with libs and I think this maybe the solution. Everything will be localStorage or hardcoded.
Are you using the normal DevTool console from chrome? when i try the same code like: var d1 =Promise.defer() it says that "VM390:1 Uncaught TypeError: Promise.defer is not a function at :1:17" what am i doing wrong?
I am just starting to see the video but run into errors in console, why chrome console is throwing error in my case var deferred = Promise.defer() VM424:1 Uncaught TypeError: Promise.defer is not a function at :1:24
Wrapping a call to fetch with a function that returns a Promise seems superfluous. It works perfectly fine, but why not call fetch directly from the calling code? As you said, it returns a Promise.
7 years later, this is still the best explanation on promises. Thank you!
thanks, that made my day
It takes a special kind of intellect to explain a complicated abstract notion properly. You sir are the best I've seen.
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.
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.
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.
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 ....
Absolutely the best promise explanation I've ever seen so far. Congrats man!
The most thorough yet succinct explanation
This is simply the best tutorial on promises on the whole net! Thank you very much!
I believe that progress bar analogy alone deserves a “like”
Never saw any video explain such concepts so effectively before. Subbed and liked.
Thank you! Most resources don't explain the structure behind the Promise object as you have done. 11/10.
OMG this is the best promise tutorial I have ever seen!
Thank you so much~
Dude this is the best explanation on promises I have ever seen.
you have done the best explanation of promise I have seen so far!! Thank you so much!!
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!
I was having a hard time wrapping my brain around promises until I watched this video. Thank you for the great explanation!
Impressive how well you explained the concept of JS promises in such an easy-to-understand way, kudos to you!
This is a great explanation. It was nice to see real life examples
Jordon, this is the best explanation, someone ever gave me.You are insanely brilliant.
by far the best explanation on promises !!!!
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.
Wow! Incredibly complex information explained as simply and organized as possible. Thank you !
Great explanation! It really helped me understand how to use the Q library a lot better.
totally the best explanation so far with the chart you mentioned in the video. Explanation should have those in the future
The information may be a bit outdated but the explanation on Promise functions and properties was very helpful! Good job!
that was TOTALLY badass mate, if you can explain it , you understand it well enough said Einstein :)
Which explains why he never gave class or lectures. Or why there are no videos of him talking. Because he was a fraud.
Yeah. The guy born in 1879 has no videos, so...probably a fraud.
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.
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 :-)
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)
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!
This tutorial is great! Succinct conceptual overview and many practical examples of promises in action. Much appreciated!
By far the best video on promises, thanks a lot!
Is this tutorial still valid today (Sept 2018)? I tried to use the first Chrome DevTools(F12) statement
var deferred = Promise.defer()
and I got an error ""Promise.defer is not a function"
I
Obsolete:
developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Deferred
Awesome, I was so confused with Promises, and this helped me understand it better. Thank you Jordan Leigh
Awesome tutorial on such a complex topic. Huge respect.
Holy shit. Best explanation hands down. Thank you, I finally get it.
Its really one of the best explanations I have seen so far!
This is a brilliant video! Absolutely to the point and the all the examples backed up their respective concepts very well. Thank you
Some very very clear explanation out here. Brilliant !
Thanks for explaining so well that any js beginner can understand this.
You are the "Promise" God!! My search ends on this video.:)
Finally so;meone who knws how to explain things...... thank you very mutch
Thanks for making this video. Very clear and thorough examples.
best explanation I've seen on the topic in youtube
This is really good. However, is there any reason why we are learning about the whole deferred object thing? Is that just for illustration purposes, or is this video old? From what it looks like (MDN), use of deferred objects with promise.defer() is deprecated.
Nice! you also taught me some react-native basics on a different video a couple weeks ago. Keep up the good work.
Best explaination on TH-cam
Awesome! not seen an explanation like this before.incredibly useful. thanks
Great video - thanks for explaining the token thingy at the end.
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!
I got a promise concept in the easy term.Thanks Jordan.
Very good demo and explanation. Thank you.
This is easily the best explanation of promises on youtube holy fuck. And trust me when I say i watched them all lol.
This is great, an update video (even with more complicated examples - like async recursion) about defer would be appreciated.
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?
Amazing tutorial. Excellent explanation.
this is it! thanks Jordan that was really helpfull! greetings from Venezuela, keep up the good work!
You explained it greatly Man... Love it
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?
one of the best explanations out there
So promises are still just a pattern for wrapping callbacks in such a way that you can chain them together in more readable fashion.
honestly one of the best online
Amazing and wonderful explanation
Hi, after many many hours of watching videos that explained Promises, this is still by far the best video on the topic.
I only have 1 question that hope anyone can clarify. In any example where one promise .then() method returns another promise and the code just keeps chaining the .then() functions, i assume each .then is acting on different promises objects. If the chain of promises ended with a .catch() function, is this catch function only catching error on the last return promise object, or all promises object in the chain. If it catches all, how does it work that way? What allows the early promises in the chain to see the defined catch function down on a later promise and share that function?
Thanks for helping.
excellent pretty smart explanation i hope to see Es6 courses from you someday
Very good explanation! Thanks
I finally find someone who can explain promises clearly, and the code is deprecated. :'( Great vid, I would definitely watch an update, though!
Dude, thank you sooo much, such a good explination
Super one bro, so cool and nice video with such a nice expiration. Just hats off to you bro... 🙏
Awesome, thanks!
Amazing video, great practical example!!
Great tutorial are promises only available in ES5/ES6?
Awesome concept explanation, Thank you very much
Great video. Does Async/Await replace promises?
Pretty good explanation, Thank you very much
Excellent, I am a big fan of bluebird and hav been using it for a while now, but didn't exactly grasp all of what promises do, now i get it. One question, how would this work together with async/await?
async await always returns a promise ;)
eg.
async function doStff () {
let res = await Promise
.resolve(1)
.then(x => x * 3)
return res;
}
doStff().then(x => console.log(x));
// result 3
Really good explanation! Thanks a ton and keep up the good work!
This is based off the old api, any plans to update?
Great job! Really helped me get the concept. Thanks!
whats the deal with defer promise, is that even used anymore?
Why did this style become deprecated?! Ugh, the explanation is so good, and the pseudo code is just right.
So much info so well presented, well done mate. I can see clearly now ... :-)
Thank you so much !
Good explanation. Keep doing it :)
Nice one dude. Thanks for sharing I appreciate. You are one of them who can teach ;)
Hey, could I talk to you? I am new to JS let alone ES6 but I need to store and get JSON information and use the objects for logic and view. I'm a little over my head. Trying not to bloat up with libs and I think this maybe the solution. Everything will be localStorage or hardcoded.
Jordan, Excellent explanation, Thank you :)
Excellent!
Folks, Promise.defer() is deprecated, make sure to switch to new Promise((resolve, reject) => {}) instead
Nicely explained. Thanks...
woooww !! that was the best explanation ! thanks a lot .
Great examples! Great video.
Are you using the normal DevTool console from chrome? when i try the same code like:
var d1 =Promise.defer()
it says that "VM390:1 Uncaught TypeError: Promise.defer is not a function
at :1:17"
what am i doing wrong?
It's obsolete.
My code will never be the same!
"Without youuuuuu withouuuuuuuuuut YOOOOOUU YOOOOOUUU YOOOOOOUUU..."
(sorry tho)
I am just starting to see the video but run into errors in console, why chrome console is throwing error in my case
var deferred = Promise.defer()
VM424:1 Uncaught TypeError: Promise.defer is not a function
at :1:24
Do we still need callbacks if know we have promises?
Wrapping a call to fetch with a function that returns a Promise seems superfluous. It works perfectly fine, but why not call fetch directly from the calling code? As you said, it returns a Promise.
great stuff, really helpful. keep up the good work.
A very good explaination thanks !!!!
Great Explanation
It' really helpful to understand promise, cheers :)
Dude bro... Nicely done.
great explanation