3 ms·
Node doesn't suffer from callback hell if you're an adequate javascript developer. Named functions? Or how about a class which you pass methods to your callbac
by robinduckett 13y ago
Node doesn't suffer from callback hell if you're an adequate javascript developer. Named functions?
Or how about a class which you pass methods to your callback functions and bind them to the instance properly.
You never need to nest a callback if you know how to work with prototypical inheritance.
- sambeau 13y agoSo, clearly, I'm not 'an adequate javascript developer'. Luckily an inadequate javascript developer can write naive code in Go that reads from disk or writes to a socket without worrying about needing "a class which you pass methods to your callback functions and bind them to the instance properly" or "prototypical inheritance". You can just call a function and use the result.
- camus2 13y agoyou still need to write callbacks,wether they are named or not, that's the problem. Go deals with concurrency a much nicer way. 10 asyncs operations in a row are still 10 functions you'll need to write in javascript.