636
STOP DOING ASYNC (lemmy.world)
submitted 9 months ago by Maven@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] agressivelyPassive@feddit.de 6 points 9 months ago

I honestly don't know, why async got so popular. It seems like the entire reason for doing it was that some blokes were hellbent on using JS on a server and couldn't fathom that a second thread might be a good idea.

[-] Rinox@feddit.it 15 points 9 months ago

Ok, I'm a c# developer and I use async await quite extensively. Is it different in JS? Or am I missing something?

[-] dvlsg@lemmy.world 16 points 9 months ago

Nah, they're very similar, really. You generally kick IO heavy stuff you don't need immediately off to async await.

There are a few more applications of it in C# since you don't have the "single thread" to work with like in JS. And the actual implementation under the hood is different, sure. But conceptually they're similar. Pretty sure JS was heavily influenced by C#'s implementation and syntax.

load more comments (35 replies)
this post was submitted on 28 Jan 2024
636 points (94.8% liked)

Programmer Humor

32472 readers
582 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS