r/javascript • • Aug 13 '17

Async/Await Will Make Your Code Simpler

https://blog.patricktriest.com/what-is-async-await-why-should-you-care/
373 Upvotes

75 comments sorted by

View all comments

81

u/Capaj Aug 13 '17

no need to tell me about it. I recently refactored couple of methods on our API from callback style to async/await and like 1/3 of the code is gone.

-159

u/9thHokageHimawari Aug 13 '17

1/3 of lines, not code. It's same code just shorter.

61

u/[deleted] Aug 13 '17

Not only are you being pedantic, you're also wrong. What's on those missing lines? If it's not code, I don't know what they refactored away...

5

u/cocorebop Aug 13 '17 edited Nov 21 '17

deleted 0.3217 What is ^^^this?

-3

u/State_ Aug 13 '17

Correct me if I'm wrong, but doesn't it still run the exact same, you just don't have to write it all, so technically it's still running the same instructions.

0

u/[deleted] Aug 13 '17

[deleted]

9

u/penagwin Aug 13 '17

I can explain the downvotes for you: People think your comments are smart alec'y and annoying.