Callbacks, promises, generators, and async/await all explained in 25 minutes. Well done!
@Dygear4 жыл бұрын
It takes so much effort to make something complex, easy to understand. This is a really impressive talk!
@paulalexwilson5 жыл бұрын
Truly understanding something requires that we have a solid appreciation of at least 1 abstraction deeper. This talk was exactly what I was looking for.
@pixelpaxal6 жыл бұрын
If you already have a good grasp of callbacks, promises and async/await in javascript, this talk is a good review to put these these things into perspective and language evolution context, it could help one understand when to use one over the other.
@sandeepparmar31139 ай бұрын
In the hell of tutorials, This is the true gem
@toxicdesire88116 жыл бұрын
Most underrated talk of entire jsconf
@AccelerateEffectively6 жыл бұрын
Truly impressed by this talk. I thought I knew everything about async/await and promises but she proved me wrong.
@nztuber4 жыл бұрын
Great stuff! At 5:38 to be clear, the execution order suggested on the right is not true for *all* callbacks, only *asynchronous* callbacks. (If they are synchronous callbacks then the invocation order would be doA, doB, doC, doD, doE, doF)
@rtech87794 жыл бұрын
yaa thats right its applicable for async calls only, for sync call it will wait in the call stack.
@yuansizhu62713 жыл бұрын
So that's why callbacks are not guaranteed to be asynchronous. But promises are, even when they are already resolved/rejected.
@PiyushAggarwal-hz9es2 ай бұрын
6:38 She casually says, "assuming these functions are async". I don't know what that even means in this context.
@makhdv6 жыл бұрын
Thanks! Needed some time to get use to academic style.
@sijanshrestha72785 жыл бұрын
yup i had to use notebook to write, but was explained clearly :) :D
@sKopheK Жыл бұрын
probably cause she read it
@ITWorx3 жыл бұрын
A very good explanation for promises vs callbacks, thank you!
@payphones6 жыл бұрын
21:00 actually made me go "ohhhhhhhhhh"
@alexagna6 жыл бұрын
Indeed ! The combination of destructuring, async/await and Promise.all() to have a non-blocking version of multiple await is really smart
@mojojojo12114 жыл бұрын
This is a great talk. Deserves more views!
@abhikumar24695 жыл бұрын
Damn...! this engineer got some serious and rare content on callback, promises and async/await.
@Henrique-yw1rb6 жыл бұрын
First slide is a meme of Nazaré, a character from a famous tv show here in brazil! LOL
@dixztube Жыл бұрын
This was so goood. Great job!
@hkjpotato3 жыл бұрын
good summary of you dont know JS 1. now. and then, run to complete, continuation, trust. Exception is sync? 2. yield control to event loop? 3. promise is microtask queue, a placeholder of a future status 4. before anyelse can happen
@ahmedal-obaidi7924 жыл бұрын
pretty much reading "YDKJS: async & performance"
@alabidavid46744 жыл бұрын
Generators could have an end. That's property done set to true in which case they stop yield anything but done:true. Also, you can terminate generators by return();
@sanderd176 жыл бұрын
I wanted to have seen this talk so much earlier. Very well done.
@maltegb3 жыл бұрын
Great talk! Everything clearly explained
@josephlee58292 жыл бұрын
Excellent Job explaining!
@randy4ii4112 жыл бұрын
Thanks for the awesome lesson.
@ssougnez6 жыл бұрын
Awesome ! It would be even more perfect with a mention to Observables though. But congratulation, very clear and sweet to listen to :-D
@arunas16 жыл бұрын
Thanks @Shelley Vohr! Good job!
@floopy3126 жыл бұрын
13:21 Can somebody write me a piece of code with an "infinite microtask loop" like she mentions, I'm not sure how you can do that.
@monolizm5 жыл бұрын
you can find the answer here at 27 min kzbin.info/www/bejne/mXSyfWqDeJmDopI.
@romankos32835 жыл бұрын
const loop = () => Promise.resolve(loop); loop();
@vscode42323 жыл бұрын
Great talk
@asianfoodie59083 жыл бұрын
Well executed!! most of the time i ignored error handling, not anymore :)
@singingofstars6 жыл бұрын
Nice job. Easy to understand.
@Mostafaabobakr75 жыл бұрын
Love the Intro Music
@enzoscardamaglia95654 жыл бұрын
"Since they're not running in the top-down sequential order you might expect." at 05:57. Has anyone tried that out? If I'm not mistaken in Node, FF, Chrome and Edge the functions run exactly in the sequential order I'm expecting.
@electroaddiction4 жыл бұрын
Since every callback is asynchronous (eg: setTimeout(cb, 0)), it will execute in the order specified.
@kps26426 жыл бұрын
awesome talk, thank you.
@jameswon54975 жыл бұрын
Really great talk!
@HarshitSharma-cd4tr3 жыл бұрын
Every Single time you call dot then on a promise it creates and return a new promise
@biboswanroy66995 жыл бұрын
I aren't yet sure of the role of queues and their scope exactly.
@terranova39415 жыл бұрын
I just watched this prior and is maybe what you are looking for: kzbin.info/www/bejne/bpKqmY2HoNR5mLM
@anastazjawrobel80403 жыл бұрын
Super :)
@dumbfailurekms Жыл бұрын
i googled her name and looked at her github and immediately realized i have no fking chance in this field
@giullianopaz82625 жыл бұрын
Brazilian meme in the first slide haha
@BinaryReader5 жыл бұрын
Inversion of Control doesn't cause significant trust issues.
@halakhita_hk5 жыл бұрын
good ..
@ElChitarrino2 жыл бұрын
Really great stuff there, thanks a lot! However, I feel the urge to mention it's quite hard to follow due to your verbal breaks each 3-5 syllables. No offense intended.
@nischalofchrist2 жыл бұрын
great lesson, learnt a lot, but she should really evaluate how to dress when you are invited to be a speaker in such a huge event.
@kazmonroy2 жыл бұрын
Have you seen how other male developers dress when they go to other big conferences? Geez. She's totally fine.
@philliplam2704 Жыл бұрын
Her expertise on this shit is srsly turning me on 😂
@felipepino834 Жыл бұрын
Quiero aprender inglés 😪😪😪🥺 para entender mejor. Y si ya se que KZbin tiene subtitulos gracias