News for hackers. Stuff that matters.
Re:Fixing the callback spaghetti in node.js by wladimir on Thursday September 29, 2011 @02:09AM (#3051335)
So instead of spaghetti code (a tangled mess) it now is macaroni code (small pieces of code everywhere, with unclear execution flow)? :-)

At least that's my experience with structuring asynchronous event-driven programs (without coroutines).

Re:Fixing the callback spaghetti in node.js by n00kie on Thursday September 29, 2011 @02:53AM (#3051433)
Yes :) Still waiting for a proper execSync ( https://github.com/joyent/node/issues/1167 ).

Without it small build/utility scripts turn into macaroni cheese unless you resort back to Python/Ruby/Bash - more languages, harder to maintain.

Re:Fixing the callback spaghetti in node.js by weixiyen on Thursday September 29, 2011 @02:49AM (#3051426)
pretty much but I find it quite readable and maintainable. The execution flow is very clear though if you look at the comments in my gist.
Re:Fixing the callback spaghetti in node.js by tilgovi on Thursday September 29, 2011 @03:18AM (#3051488)
I think this is coroutines under the hood?