3 ms·
Promises are just as bad as callbacks in most of the code organization issues and I agree with you that they don't actually solve "callback hell". However, one
by ufo 10y ago
Promises are just as bad as callbacks in most of the code organization issues and I agree with you that they don't actually solve "callback hell".
However, one thing that promises (and other library-based solutions) do better than hand-written callbacks is exception handling. By default, promises will capture and propagate and exceptions thrown inside them, which is something that is very easy to forget to do with hand-written callbacks.