News for hackers. Stuff that matters.
Re:Escape from Callback Hell: Callbacks are the modern goto by chipsy on Friday November 02, 2012 @06:17PM (#4735040)
What do you do for networking, though? That seems to be the motivation to introduce callbacky code in web programming.

(FWIW my own architectures tend to turn callbacks into queues and polling.)

Re:Escape from Callback Hell: Callbacks are the modern goto by jblow on Friday November 02, 2012 @06:31PM (#4735097)
Just like a C++ program would, you have a loop that blocks on network input. This has been solved since the 1970s.
Re:Escape from Callback Hell: Callbacks are the modern goto by Evbn on Saturday November 03, 2012 @02:31PM (#4737458)
And then how do you use the other 99% of your CPU? Just by extra machines every time a network call hangs? Add threads, and then you gave a whole new can of expensive worms.