News for hackers. Stuff that matters.
Re:Pseudosynchronous JavaScript by sirsuki on Thursday June 25, 2015 @08:37AM (#9777394)
If only I could upvote this more than once. I'd upvote this to 100! That was my first take on the article. Why the hell would anyone write promises like that?!
Re:Pseudosynchronous JavaScript by mAritz on Thursday June 25, 2015 @09:22AM (#9777649)
It's rather common to see promises used as pseudo-callbacks actually. I think it has to do with the fact that just assigning something async (the promise) to a variable seems so counter-intuitive to someone who has programmed with callbacks for a while.