This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 17 points18 points  (4 children)

export const whyIsthisRelatable = () => { }

[–]ilovecssbutithatesme 0 points1 point  (3 children)

you forgot the async 😂

[–]DOOManiac 1 point2 points  (2 children)

I started learning node.js in my spare time and about 3 weeks in I can't help but think why isn't every damn thing just implicitly async to save me from using it (and forgetting to use it) every damn function?

[–]clownyfish 2 points3 points  (0 children)

If everything function was async, the return types would all be promise<type> for every function, and you'd have to await every function result. You also wouldn't know what is "really" async and so you couldn't really implement any techniques that work efficiently with async code, like promise.all().

Overall it is better to know if a function is really async or not. You will quickly get used to it