7

I honestly hate dealing with promises in JavaScript. Asking permissions just to autoplay a video just like the client requested.

Comments
  • 6
    promises are the least hateable thing in JS, Promises combined with async/await make the code elegant. Callbacks are a mess, promises are a boon to developers.
  • 1
    Promise is not asking, it is A promise to deliver.

    Its one way to handle async in an easy way.
  • 2
    Use RX then. Problem solved.
  • 0
    Why not gen then ?
  • 1
    @theabbie then how come autoplay needs permissions via promises? Either way it's a mess.
  • 0
    @e5coder It doesn't need any permission, it's your clients who need that, it is weird but a super useful feature.
Add Comment