Re:We Only Hire the Trendiest (2016)
by BubRoss on Thursday December 12, 2019 @01:19PM
(#21774600)
Node is a total nightmare even if you like javascript. The async everything nonsense makes basic tasks impossible without nesting callbacks within callbacks within callbacks.
[ Parent
| on HN ]
Promises and async/await fix this.
The Node API unfortunately is built around callbacks, but can be turned into a Promise-based API using the built-in "promisify" tool: https://nodejs.org/dist/latest-v8.x/docs/api/util.html#util_...