6 ms·
Why is everyone saying callbacks are naturally messy? When I first started node.js I realised I had a pyramid in my screen (6 callbacks in one another). I then
by guiomie 13y ago
Why is everyone saying callbacks are naturally messy? When I first started node.js I realised I had a pyramid in my screen (6 callbacks in one another). I then googled "callback hell", and found some nice techniques not requiring promises or any other fancy library to write my code nicely.
- jbeja 13y agoCould you shared the links?
- jerf 13y agoThe messiness isn't in the code; the messiness is in the execution model itself. However nice you may think your code is now, compared to the "pyramid", it's nothing on how nice it is when you write it in a language that has "asynchronousness" at its core, like Go.