News for hackers. Stuff that matters.
Re:I Avoid Async/Await by RobertWHurst on Saturday April 16, 2022 @10:53AM (#31052785)
I've been on teams working on node projects for like 15 years. I've never seen someone who understands promises or async await do that. You'd have to know nothing about what the async keyword actually does to be compelled to do that.
Re:I Avoid Async/Await by hn_throwaway_99 on Saturday April 16, 2022 @11:55AM (#31053314)
I mean, I know its a bit of linguistic flourish, but considering NodeJS was only initially released 12 years ago, that's quite a feat!
Re:I Avoid Async/Await by eurasiantiger on Saturday April 16, 2022 @11:12AM (#31052937)
I have seen plenty of (usually junior front-end) devs resort to exactly this kind of cargo cult coding and magical thinking.
Re:I Avoid Async/Await by wiml on Saturday April 16, 2022 @11:38AM (#31053152)
Well, they're junior devs. You're supposed to help them get past that stage, not just throw away all your tools.
Re:I Avoid Async/Await by eurasiantiger on Saturday April 16, 2022 @05:30PM (#31056257)
What made you think I haven’t been helping them?
Re:I Avoid Async/Await by joe_guy on Saturday April 16, 2022 @11:40AM (#31053179)
I'm going out on a limb here and assuming the issues with their code don't begin and end with async.
Re:I Avoid Async/Await by cercatrova on Saturday April 16, 2022 @11:54AM (#31053301)
> I've never seen someone who understands promises or async await do that. You'd have to know nothing about what the async keyword actually does to be compelled to do that.

> usually junior front-end

So you agree with each other then?

Re:I Avoid Async/Await by eurasiantiger on Saturday April 16, 2022 @03:12PM (#31055170)
Good day, axe handle.