3 ms·
The longer I see people debate the value of promises and their obscured use via async/await vs callbacks I am more assured of the value of simple callbacks. If
by lootsauce 9y ago
The longer I see people debate the value of promises and their obscured use via async/await vs callbacks I am more assured of the value of simple callbacks. If you are experiencing callback hell you have bigger problems than callbacks. If you love promises great! But please don't force them on me or I'll find another api to use thank you.
- always_good 9y agoI don't think any library authors care if you don't use their library. But I feel bad for everyone that has to touch your code.
- saas_co_de 9y agoI haven't heard or read a lot of debate claiming that callbacks are superior to promises and async/await. From the people I work with and everything I have read there is almost universal agreement that promise based code is easier to work with than callback based code and async/await is superior to both. Callbacks do have superior performance, so if you are writing some really performance sensitive code then it might be worth using them, but like all optimization techniques that should only be done if the case truly requires it. Most don't.
- rmrfrmrf 9y agoMultiple async vehicles can and will coexist in JS. IMO there’s way too much FUD about “one async story to rule them all”.