DEV Community

Discussion on: Callback Hell and How to Rescue it ?

Collapse
 
andreidascalu profile image
Andrei Dascalu

"I think you should know about Synchronous and Asynchronous programming in JavaScript(or any other language)"

Except that no ... the three patterns of Async programming you describe don't apply to any other language except Javascript.
While ReactPHP has some things that resemble callbacks, just about any other async-capable language uses multithreading, either soft threads (managed by the platform such as Go's goroutines or PHP Swoole's coroutines), system threads or full-blown parallelism.

For a fully relevant discussion on async programming, it might be better to start with concurrency vs parallelism and then see what JS is capable of.

Collapse
 
jerrycode06 profile image
Nikhil Upadhyay

This article basically focuses on callback hell and I have given just a quick overview of async programming, although I agree on your point -
"the three patterns of Async programming you describe don't apply to any other language except Javascript."
Thank you for mentioning it, I should've added it to my article.