1
Areg
23d

Fuck javascript promise functions, everything is a fucking promise in my app and every fucking time ill have to use a fucking callback. Seriously why the fuck we can just assign the result of the promise to a fucking variable.This makes my code look like shit. Fuck THIS

Comments
  • 5
    async await ?
  • 2
    @N00bPancakes 👈 what he said
  • 1
    @N00bPancakes 'promise<pending>'
  • 0
    that's what you get when you take a language meant to do one thing and one thing only (DOM stuff), and turn it into a swiss army knife that does a lot of things but none properly.

    a special fuck you to those shitty JS ORMs that look like a bunch of brainfuck code golf solutions that fucked a chinese worm salad in an attempt to solve their marital issues but failed miserably and left us with inbred progenies all over the place.
  • 4
    @Areg you forgot the "await" part!

    function returnAPromise(){
    // Returns promise
    }

    async function useAPromise(){
    let data = await returnAPromise();
    }
  • 1
    @AlgoRythm thanks, apperciated, still sucks tho
  • 1
    @Areg Not nearly as bad!
  • 2
    @molaram Async is literally perfect for the purpose of JS. What's your problem with it?
Add Comment