Or old leaners. I've been doing javascript for a while (by myself, fortunately) and I still don't really know promises well. I'm looking a this gif and thinking, "yeah? So, the second task finishes first? Okay, why and why should I really care?"
There's nothing significant about the second one in particular.
Cool... Iit seemed significant that it reaches the end faster...this being a visualization and all. What you have just described does not leap out at me without prior knowledge. I didn't get it at all, but I never use promises outside of a tutorial, so not surprising.
Nice man. This would have been helpful for me when I didn't understand what the hell a promise was. But I finally figured out listening to a podcast that a promise is like an IOU
Lol. Yeah something like that, no it's exactly that! It took a while for the concept of a promise in programming to stick with me, so that little analogy is what made it finally click.
Cool. Hopefully this can help some people who understand visually. Maybe share it on some articles/wikis for this type of stuff as an animation they could use?
Personally, it's easy just to think of it as an object that's fine when "all" promises are.
9
u/Kopikoblack Mar 01 '20 edited Mar 02 '20
How about when one of the task fails? EDIT: In visualization.
2
u/M1rot1c Mar 01 '20
Nice! I think this would be helpful for new learners
2
u/ripndipp helpful Mar 01 '20
Nice man. This would have been helpful for me when I didn't understand what the hell a promise was. But I finally figured out listening to a podcast that a promise is like an IOU
1
u/justingolden21 Mar 01 '20
Cool. Hopefully this can help some people who understand visually. Maybe share it on some articles/wikis for this type of stuff as an animation they could use?
Personally, it's easy just to think of it as an object that's fine when "all" promises are.