Asynchronous Programming in a Nutshell

Asynchronous Programming in a Nutshell

Tech With Tim

1 год назад

55,475 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Gav's vids
Gav's vids - 28.08.2023 23:52

Coroutines vs subroutines

Ответить
jimm
jimm - 27.08.2023 04:16

Threading is better

Ответить
LordDonKing
LordDonKing - 26.08.2023 00:08

yeah wtf!?? i just subbed 🎉

Ответить
Lafawnduh
Lafawnduh - 25.08.2023 22:39

But what would you be waiting for when programming if you are the only one working on it?

Ответить
Ayoub Shnab
Ayoub Shnab - 23.08.2023 11:16

Your explanation is incredibly useful, and i like how you represented the Synchronous and Asynchronous programming.🎉
🎉

Ответить
Keex
Keex - 05.08.2023 20:57

you explained it better than my Udemy instructor

Ответить
Zea
Zea - 03.06.2023 11:44

So how icloud of apple sync or async? I think it's asynchronous, right? 😂

Ответить
George Blazhev
George Blazhev - 24.05.2023 23:48

This example is also given in the Microsoft documentation of C#, however, I think it might feel incomplete for beginners. Let me elaborate: The example is pretty good to get the concept, but when people start implementing asynchronous methods at first, they don't really see the difference and might be left wondering. That's why I believe the concept of shared context of the main worker thread needs to be explained and also the beginners should be guided to think in a broader picture:

Let's say you're bulding an API. Try hitting some endpoints which are synchronous and then change their methods to be asynchronous and you'll see the difference. Asynchronous programming makes your code more usable, it doesn't necessarily start new threads, but it can also introduce race conditions.

I hope my comment is comprehensive, apologies if it is not.

Ответить
aku
aku - 17.05.2023 11:20

I just called it parallel processing. But hey, asynchronous programming works, too

Ответить
Derick Ongeri
Derick Ongeri - 16.05.2023 23:49

Finally I get it 😅. Thanks for simplifying it

Ответить
Redyf
Redyf - 16.05.2023 22:17

Now i understand, thanks!

Ответить
Krystian
Krystian - 16.05.2023 15:35

Okay Tim, when can we expect more in depth video with examples?

Ответить
Informative Content
Informative Content - 11.05.2023 23:42

JavaScript is pathetic

Ответить
Darin Hibbs
Darin Hibbs - 11.05.2023 01:54

multi-tasking...

Ответить
Philzskillz
Philzskillz - 10.05.2023 23:38

I don't think pause is a good word for it you'll just end up confusing people.. Next

Ответить
André Kiehm
André Kiehm - 10.05.2023 21:56

Very good explanation! Thx

Ответить
Curious_One
Curious_One - 10.05.2023 21:48

multithreading basically ?

Ответить
Graham Kelly
Graham Kelly - 10.05.2023 21:17

I remember when he used to make videos

Ответить
Ntando Lugwazi
Ntando Lugwazi - 10.05.2023 19:36

Which one is better ?

Ответить
jacky hung
jacky hung - 10.05.2023 19:36

Thank you Tim❤

Ответить
EasyPeasy Coding
EasyPeasy Coding - 10.05.2023 18:32

But the problen is when we stop cooking and go to another task the chicken still is on the fire how can you explain that?

Ответить
Arthur C
Arthur C - 10.05.2023 17:51

You didn't make it clear whether time stops in the oven or the cooking continues while you're on another task.

Ответить
geo gamer
geo gamer - 10.05.2023 17:49

Hey tim. Python is the most useless language. Prove me wrong

Ответить
ThePetiteOtaku
ThePetiteOtaku - 10.05.2023 17:23

Great analogy thank you!

Ответить
BanPrem001
BanPrem001 - 10.05.2023 16:43

you should also make a short about the difference between asynchronous programming and multi-threading 👍

Ответить
Rikhil Singh
Rikhil Singh - 10.05.2023 16:32

Coool, so compared to threading and multiprocessing, are there particular use cases whereby asynchronous programming is beneficial; or just in general?

Ответить
Neil
Neil - 10.05.2023 16:30

An excellent analogy to demonstrate Asynchronous Programming. Great job as always, Tim.

Ответить
Harpreet06
Harpreet06 - 10.05.2023 16:21

Yum chicken

Ответить