News for hackers. Stuff that matters.
Re:I loved jQuery, and still do (2019) by goldenkey on Tuesday June 29, 2021 @03:32PM (#27680665)
You could have used async/await and fetch along with a polyfill if you are concerned about compatibility with older browsers. ;-)
Re:I loved jQuery, and still do (2019) by Zababa on Tuesday June 29, 2021 @06:48PM (#27682762)
Maybe that's just me but I find the async/await stuff way harder to understand than a simple callback. Sure when you're going through callback hell you're glad to have promises and the syntaxic sugar, but for simple things the callback makes sense, especially since it's already how you use map and filter in JS.