Hacker News new | ask | show | jobs
by wladimir 5381 days ago
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).

3 comments

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.

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.
I think this is coroutines under the hood?