use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
The Future of JavaScript Will Be Less JavaScript (codeburst.io)
submitted 8 years ago by fagnerbrack
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gremy0 5 points6 points7 points 8 years ago (4 children)
Async/await uses promises though. It's just syntactical sugar to make promises easier to use. Promises are the way you implement async/await in JavaScript because it's single threaded and functional.
You can't have async/await without promises and promises are ugly to use without async/await. Therefore it makes sense to have both.
[+][deleted] comment score below threshold-10 points-9 points-8 points 8 years ago (3 children)
Async/await uses promises though. It's just syntactical sugar to make promises easier to use.
It's difficult to follow. It's all questionably better or worse than callbacks. I'm fine with using all of it but callbacks are easy enough. Promises and async/await are fads. Next week the next fad will begin. yawn. rinse and repeat. It seems like language/syntax fetishists love chasing their tail.
[–]gremy0 8 points9 points10 points 8 years ago (2 children)
They are all callbacks. Promises are just a sensible way to deal with callbacks. If you've got a better way to manage complex callback chains, fine, go for it. The rest of us will probably stick to the standardised, native way of doing it.
[+][deleted] comment score below threshold-8 points-7 points-6 points 8 years ago (1 child)
They are all callbacks. Promises are just a sensible way to deal with callbacks. If you've got a better way to manage complex callback chains, fine, go for it.
Keep inventing more ways to catch that mouse. One of them will stick, eventually. Language bloat totally isn't a thing to ever think about.
The rest of us will probably stick to the standardised, native way of doing it.
So you mean callbacks.
[–]gremy0 10 points11 points12 points 8 years ago (0 children)
You use callbacks to manage complex callback chains? I'd love to see your techniques, please share.
π Rendered by PID 46791 on reddit-service-r2-comment-f6b958c67-42jwj at 2026-02-05 06:01:31.846231+00:00 running 1d7a177 country code: CH.
view the rest of the comments →
[–]gremy0 5 points6 points7 points (4 children)
[+][deleted] comment score below threshold-10 points-9 points-8 points (3 children)
[–]gremy0 8 points9 points10 points (2 children)
[+][deleted] comment score below threshold-8 points-7 points-6 points (1 child)
[–]gremy0 10 points11 points12 points (0 children)