Hacker News new | ask | show | jobs
by todd_wanna_code 3048 days ago
> There are still places where callbacks are better)

Like? I am genuinely interested in knowing the drawbacks of promises and places where a callback like structure is more favourable. By the way, I am not contradicting you, just trying to learn.

2 comments

A promise can only be activated once. You still have to use callbacks for buttons and other things that can be activated more than once.
foo.map(x => x * 2);

Not sure I'd want to use a promise there :)