3 ms·
> This is true only insofar as libraries use promises, and your code uses promises. They're still pretty annoying in my experience. Promisify, or (as I prefer
by udp 9y ago
> This is true only insofar as libraries use promises, and your code uses promises. They're still pretty annoying in my experience.
Promisify, or (as I prefer to) just "return new Promise((resolve, reject) => { nonPromisedStuff(...) })"?
> There are still some other cases where the mess of brackets is overkill, other than callback hell.
Like bad coding style?