Live data from Hacker News

Show HN: A Javascript library to overcomplicate Five

jackdcrawford.github.io

11–20 of 31 posts

Re: Show HN: A Javascript library to overcomplicate Five

#15
post #4

five.tooSlow = function() { var returnIn = new Date(new Date().valueOf() + 555); do {} while(new Date() 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.

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()

Re: Show HN: A Javascript library to overcomplicate Five

#18
post #10
post #9

Thanks for sharing, but in my app I really need five to be six. If you could address this one small issue I'm sure your lib would see much more use.

var six = five() + five() / five();

var six = function() { return five() + five() / five(); }

Some people may rely on that functionality.

Post reply on HN