News for hackers. Stuff that matters.
Re:Show HN: A Javascript library to overcomplicate Five by jgillich on Thursday July 17, 2014 @11:19AM (#8047996)

    five.tooSlow = function() {
        var returnIn = new Date(new Date().valueOf() + 555);

        do {} while(new Date() < returnIn);

        return five();
    };
Finally a way to escape callback hell. I think somebody should write a jQuery.ajax plugin that calls the function repeatedly until a request is finished.
Re:Show HN: A Javascript library to overcomplicate Five by sfeng on Thursday July 17, 2014 @11:42AM (#8048131)
That actually wouldn't work, as the response from the request would never be processed while you were looping.

You can make synchronous requests already though:

    req = new XMLHttpRequest
    req.open("some/url", "GET", false);
    req.send()