3 ms·
I 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 rea
by saas_co_de 9y ago
I 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.