this post was submitted on 24 Sep 2023
214 points (93.1% liked)

Programmer Humor

32435 readers
991 users here now

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

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Tartas1995@discuss.tchncs.de 2 points 1 year ago (1 children)

And what is the alternative? How do you handle any non trivial load in any other language? Without a second thread or while loop. Because apparently you dislike both. You like it sync for your database -> while loop somewhere, but while loops are bad. But asynchronous is bad because it adds complexity to your code when you use functions to reduce the nesting.

On nodejs, the platform that you talked about earlier, they are literally called worker_threads". So they are different? How? Why can't you use them?