4 ms·
> Async is great for lots of things, but not for your entire app. That criticism is pretty dated now that JS has async/await. Given that you understand promise
by wild_preference 9y ago
> Async is great for lots of things, but not for your entire app.
That criticism is pretty dated now that JS has async/await. Given that you understand promises, async code has become trivial.
- everdev 9y agoIt's still an extra step to undo the async by default of JS. In other languages, the async is added only as needed, which I prefer.
- always_good 9y agoWhat do you mean by undo? Languages that aren't async by default (most of them) make async tedious when you do want it. A web application is precisely the sort of thing I want async. So it's in fact an extra step to write async code in most languages when building a web app. For example, just firing off a few requests (database, other APIs) in a route and awaiting them. JS makes this trivial.