4 ms·
(No, I’m not making the “callbacks turn into a pile of spaghetti code” argument, although I think you hear that time and again because it’s an actual developer
by moe 16y ago
(No, I’m not making the “callbacks turn into a pile of spaghetti code” argument, although I think you hear that time and again because it’s an actual developer pain point in async systems.)
Amen.
On my first try I was mostly underwhelmed with node precisely because of the callback hell you end up in. I've already had my share of that in twisted and despite the arguments various people make for it; thanks, but no thanks.
That's not to bash node as a whole, mind you. I'll most certainly revisit it when and if it grows a stable co-routine wrapper or similar spaghetti prevention facilities.
- patrickaljord 16y agoYou should try express http://github.com/visionmedia/express http://github.com/visionmedia/express
- DTrejo 16y agoManaging lots of callbacks in Node.js: http://stackoverflow.com/questions/1809619/managing-lots-of-callback-recursion-in-nodejs http://stackoverflow.com/questions/1809619/managing-lots-of-...
- cgbystrom 16y agoThis the exact reason why I dumped Twisted in favor for gevent (greenlet/coroutine-based NIO library)