Asynchronous Vs Synchronous Programming
HTML-код
- Опубликовано: 13 июл 2024
- Asynchronous code can be incredibly confusing and frustrating for anyone learning programming. In this video I will explain what asynchronous and synchronous code talk about their differences through the use of multiple examples.
Twitter:
/ devsimplified
GitHub:
github.com/WebDevSimplified
CodePen:
codepen.io/WebDevSimplified
#JavaScript #WebDevelopment #Programming
I love that you are straight to the point with a clear and short explanation. It makes things a lot easier. Appreciated! 🤩
u just want him to blow your back out
Yes😀
seems that, if you get things confused, you can replace synchronous with the word "sequential"execution ... and asynchronous with "parallel" execution. Which type blocks will also become clear as well.
My good sir, that's such a great way to summarize it
@@GerardBeaubrun Not quite. JavaScript isn't parallel as it is runs as a single threaded process. For asynchronous functions is uses an event loop.
@@JasonEdokpa exactly
@@JasonEdokpa smart man
100% crystal clear explanation. I was looking at videos that are lengthy, I could not get my head around them. Really liked the way you explained async with then example. Thanks tons.
every single video from your channel clears so many concepts in my head, i cant even start to tell you..thank you so much from the core of my heart
"Not every single function that takes an argument is asynchronous, but in general, most function that takes function argument are going to be asynchronous"
Thank you, this line clears things for me. Much appreciated
Nice explanation, but just to add even if you put setTimeOut 0ms it will still excecute last after all synchronus code is done and stack is empty. Thats because async funtions appear on the stack at call time and are immediately pushed off and added to webapis stack where count down begins and since its 0 so the callback of setTimeout gets immediately it gets pushed to task queue ( not call stack ), where spinning event loop is gonna pop this callback function on the main stack once its empty. So even if you have 5 set time outs with 0 ms and 1 console log at the end set timeouts gonna run after console.log because as i mentioned above async functions are pushed back on stack only after main stack is empty
lucid explanation, thanks man
Always a great resource for me, short and full of relevant info. Plus I like the clicky keyboard sounds. Awesome video, yet again! Thanks, Kyle!
I totally agree. Especially the clicky keyboard part!
Love all of your videos! You make everything so easy to understand! Thank you!!
Your videos are straight to the point and that just amazing. Thank you for making them.
You have explained the concept so well! Thank you : )
Wow, as someone who feels more intermediate than total beginner, I felt that you really validated my learning curve. Thank you!
Keep it simple and objective just as you are. You clarify the web dev in a way its much easier to learn. For a non native english speaker, your chanel is one of my favorite learning resource. Thank you very much and my best reggards from Brazil. (:
I am a big big fan of your short & crisp concept clearing videos 🧡🧡🧡
Thank you for getting to the point, and explaining this concept in clearest possible terms.
Short and helpful, thank you very much! =]
You're welcome!
This was very helpful Kyle, thank you!
Thanks alot. I have learned promises callbacks and async await but still I was confused between async and sync terms. Your example completely cleared all concepts async JS.
Such a simple and effective way to explain this. 🤙🏻🖤
Spot On. The way you explained everything so easily. it is appreciable.
Thanks, your clear explanation helped me understand this concept better. :)
Killer explanation, you made some stuff clearer for me in no time.
you are the best youtube web dev creator. Love the show. My tip is that instead of having to type console.log() each time. Just type log and vscode will auto complete the code for you. THanks for the video
Simple , Short , Concise. Thank You.
Thank you so much, This tutorial helped me a lot to get the concept clear.
Awesome! Thanks for this video.. You have explained the concepts very well
Wow very straight to the point.... Awesome! Double thumbs up
Whaaat, didnot know of this before your video. Thank you very much for sharing this
pretty clear and straightforward explanation ..... Thanks !!
Nice explanation. Simple and clear!!
thank you brother!! very well explained!! keep it coming!!
excellent video mate! Really helpful!
Thank You sir , You have cleared the doubts that were blowing my head ❤
Great video man! You helped a lot.
The best in explaining stuff.......big ups man
Thanks, The first video that helped me!
Well explained! Best I have seen.
Thanks sir. It was really simple explanation!
Thanks a lot, I really tapped into the concept
I searched and searched, nothing helped me...and on top of that, those things made me confused :(, but you just made it soo easy for me!!!! Thank you! subbed!
Explained wonderfully 🙏
Thank you ! Learned a lot in just 7 minutes !
Thank you man ! That was very helpful
the best explaination of the async feature in js ever
great explanation. thanks!!
It took me watching 4 videos until I found this one. It was perfect!
very clear explanation, good examples
thank you man 👌👌👌
Awesome explanation!!!!
Thank you so much, this was helpful
This helped a lot. Thanks a lot!!!
Very straightforward explanation thank you and godbless you.
Short and sweet!💯
Thank you i love the way you explain things .
Thank you very much it was concise and helpful
Thank you! This makes a lot of sense
Thank you. Good video, very clear.
Short, clear video on Async Programming. Thanks.
{2021-07-20}
Very good explanation of the concept.
Thanks for the video, i can get more understanding about async js 👍
Thank you for the explanation
Brilliantly explained!
Great explanetion, thanks.
Thank you it's really helpful for me.
You're welcome!
Wow! Thanks 💙
You gained a sub
thanks, bro you have clear this concept abut sync and async with nice example
I'm glad I could help
Thank you, Kyle!
thanks for the video Kyle
thank you for this great explanation
nicely done, thank you!
Very well explained
Thanks I got a clear understanding about asynchronous programing :-)
Helpful and very very clear
Very good explaination
So clear thank u
Thank You So Much Brother.......🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
Very good explanation
Wooooow I couldn’t understand the difference between synchronous and asynchronous code until a I watched his video thank you!
THANK YOU!! FINALLY SOMEONE
Dude, you just gave the best start to learn more about Async Programming.
btw, whats your VS code theme, font, setup...
Great video, great concepts!
Thanks! I'm glad you enjoyed it.
great video. I am more confused about scope within the Async function. can you assign a value to global variables within an Async function. for some reasons, I cannot seem to get that to work
Great work man.
clear and concise
Thanks for a great video.
Thank you ive been confused
awesome explanation
Love your newsletter
Thank you!
Thank you very much :)
thanks for the concept you know to explain thanks.
Thank you!
Thank you for making my life easier 🤩
Your videos are so ... I am lost the words wonderful.
you deserved a sub bro
So I tried passing a variable into the setTimeout() handler and the handler implemented instantly with out waiting. Any idea why this happens?
Thanks pal!
thanks man i was always confused about that
No problem. I'm glad I could help.
Given the scenario mentioned in the video, how can we get a =1 instead of a becoming 10 for an async operation?
very good explanation
well explained👍👍
I love your keyboard sound whenever you typed which makes me motivated.
Hi, Can you make a video on how javascript works while executing the code internally? Thanks a lot! And amazing videos thank you!!