How and why to use Web Workers. 💬 Topics: - What are web workers? - The JavaScript event loop, queue and stack; - JavaScript single threaded vs. multi threaded; - Blocking the UI thread; #javascript Patreon: / awesomeclub
Пікірлер: 72
@user-zl5gi8sv7u8 ай бұрын
Oh god another fireship rip off
@awesome-coding8 ай бұрын
Is it the best rip off though?
@user-my6un7sq6i7 ай бұрын
that was a great explanation, thanks@@awesome-coding
@awesome-coding7 ай бұрын
@@user-my6un7sq6i Glad it was helpful!
@drfeinstein6 ай бұрын
Spicy European flavor Fireship
@namahshrestha32263 ай бұрын
@@awesome-coding Best one yet.
@UsernameUsername000011 ай бұрын
The way you’ve just managed to explain a topic from scratch without making any part of it cryptic is something this space needs!
@awesome-coding11 ай бұрын
Thank you! I'm glad you found this useful!
@TheEletricboy3 ай бұрын
Fireship clone or not, great job at explaining this subject in a concise manner with real world use-cases and easy to follow reactive visuals. We need more creators like you
@awesome-coding3 ай бұрын
Much appreciated!
@JaskierRezzo11 ай бұрын
I'm really loving these short concept videos about things we all know because we have heard it somewhere and everyone understand the bare-bones definition of but rarely the much needed details! Another banger video.
@awesome-coding11 ай бұрын
Glad you like them! That's the main reason I'm doing these videos. Too often I'm like - "yea, I know what that is", but then, when I'm really thinking about it I realise I don't fully understand some of the basics.
@damilolaadeyemi83835 ай бұрын
8 years experience and damn, this is the best explanation of non-blocking I've seen
@awesome-coding5 ай бұрын
Thank you! I'm glad you found it useful!
@ybenjamin11 ай бұрын
Great work on the presentation, using a real world example always improves the understanding!
@awesome-coding11 ай бұрын
Thank you for your feedback!
@markyer399611 ай бұрын
Another awesome video! Great visuals, too
@awesome-coding11 ай бұрын
Thank you! Cheers!
@AveN7ers11 ай бұрын
Great video! This is an excellent introduction to workers
@awesome-coding11 ай бұрын
Glad you think so! Thank you!
@rizwank65811 ай бұрын
Hey Great Video! Finally I understood the proper use-case for this. Thanks!
@awesome-coding11 ай бұрын
Glad it helped!
@krateskim416911 ай бұрын
Awesome video, waiting for next one
@awesome-coding11 ай бұрын
More to come! Thank you!
@6little6fang611 ай бұрын
Thanks for these beacons of knowledge.
@aghileslounis11 ай бұрын
short and excellent
@yuhanlian99111 ай бұрын
what a hidden gem, thank you so much!
@awesome-coding11 ай бұрын
Glad you like it!
@Aksht-h9u26 күн бұрын
This was awesome explanation
@renatolins46704 ай бұрын
That helped me, thanks for such an awesome and practical explanation!
@awesome-coding4 ай бұрын
Glad it helped!
@couragic11 ай бұрын
0:40 I guess this visualization of current stack execution can confuse some people. You have several functions in queue and in the stack and it looks like node can pick several functions from queue and execute them sequentially at once (at one loop cycle). But the stack is actually just one function from queue.
@awesome-coding11 ай бұрын
This is a very good point! Thank you for mentioning it!
@ozzyfromspace11 ай бұрын
@@awesome-coding your illustration is fine. sometimes a function will call other functions, or even itself recursively. The call stack can hold other execution context's in this way. Granted, I understand @couragic's valid concern about confusing some people. Overall, nice video! Best wishes to the both of you.
@MeesvanStiphout2 ай бұрын
Clear explanation! thanks so much!
@awesome-coding2 ай бұрын
Glad it was helpful!
@JohnSmithhh5 ай бұрын
Thanks! Good explanation
@awesome-coding5 ай бұрын
Glad it was helpful!
@emongtindero11 ай бұрын
Enlightenment, thanks
@awesome-coding11 ай бұрын
Glad you enjoyed it!
@the3dcapybara9 ай бұрын
Thanks, it was pretty good explanation!
@awesome-coding9 ай бұрын
Glad it was helpful!
@ashleyfreebush11 ай бұрын
This type of content is the best
@awesome-coding11 ай бұрын
Thank you!
@pourlamouvance11 ай бұрын
Thanks!
@RedStone5767 ай бұрын
very nice
@pratiknaik2619 ай бұрын
Nice and short
@anantawijaya15948 ай бұрын
what a nice video
@awesome-coding8 ай бұрын
Thanks!
@navidghasemi968511 ай бұрын
great
@Ahmed-yr8wb7 ай бұрын
YOU ARE SO FUCKING AWESOME, THANK YOUUUUUUUUUUUUUUUUU
@awesome-coding7 ай бұрын
Glad you found this useful! ✌️
@uhhHandle11 ай бұрын
Yay
@whatsanimesh8 күн бұрын
What do you recommend Web Workers or WASM ?
@awesome-coding8 күн бұрын
It depends on the use case. I'd go with web workers if possible because of the simplicity. WASM usually implies adding another language in the mix.
@emondoraon11 ай бұрын
How about async?
@awesome-coding11 ай бұрын
Async / await is just sintactic sugar on top of the Promise API - so this is just the usual Event Loop.
@dragosudrea1211 ай бұрын
Can you make a video about web coponents ?
@awesome-coding11 ай бұрын
Hey! I did a Web Components related video recently which might be of interest to you - kzfaq.info/get/bejne/gN9gl7Cql9eofaM.html Also, I can break down web components in a separate video for certain! Thanks for the suggestion!
@dragosudrea1211 ай бұрын
@@awesome-coding wow thank you, I didn't expected a response
@AlexanderSuraphel11 ай бұрын
Like #42 :)
@awesome-coding11 ай бұрын
the answer to the Ultimate Question of life, the universe and pretty much everything
@AlexanderSuraphel11 ай бұрын
@@awesome-coding :) took 7.5 milliion years to find out!
@awesome-coding11 ай бұрын
@@AlexanderSuraphel That's like 10 seconds in JavaScript time!
@gauravsharma344411 ай бұрын
Just JavaScript being javascript. Mf, someone tell me is it single threaded or not.