Re:Let’s make a JavaScript Wait function
by lootsauce on Sunday November 12, 2017 @04:59PM
(#15682858)
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.
[ Parent
| on HN ]
Re:Let’s make a JavaScript Wait function
by saas_co_de on Sunday November 12, 2017 @07:08PM
(#15683293)
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.
Re:Let’s make a JavaScript Wait function
by rmrfrmrf on Sunday November 12, 2017 @07:51PM
(#15683464)
Multiple async vehicles can and will coexist in JS. IMO there’s way too much FUD about “one async story to rule them all”.
Re:Let’s make a JavaScript Wait function
by always_good on Sunday November 12, 2017 @06:40PM
(#15683186)
I 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.