4 ms·
> - Its async nature is more difficult to grasp for beginners compared to one thread/request and then linear-ish work of some other languages Grasping isn't th
by mekster 6y ago
> - Its async nature is more difficult to grasp for beginners compared to one thread/request and then linear-ish work of some other languages
Grasping isn't the hard part, it's just about placing callback functions on executed functions that allows callbacks.
What's so bad is that it is async by default and now you need million "await" and "async" keywords all over the place. I wish it would be sync by default and for those rare cases where you really want it async, you would add a keyword.
- franciscop 6y agoI mean 4 of the very common Node.js operations are async by nature: database calls, file access, external API calls and crypto.
- dragonwriter 6y agoThey aren't async by nature, just time consuming. Async is a useful way of dealing with time consuming operations in some situations, but blocking calls also a work (and make more sense for some workloads.)