Live data from Hacker News

JQuery.Deferred is the most important client-side tool you have

eng.wealthfront.com

1–4 of 4 posts

Re: JQuery.Deferred is the most important client-side tool you have

#3
yes jQuery.Deferred is a very elegant solution to nested callbacks et all.... I have got it at the heart of the Single Page Application Architecture I am building currently.

e.g. stionaJS.DAL.authenticate(creds) .pipe(listDomains) .done(withMultiUserDomain) .done(withSingleUserDomain) .fail(failedAuthentication);

Re: JQuery.Deferred is the most important client-side tool you have

#4
post #3

yes jQuery.Deferred is a very elegant solution to nested callbacks et all.... I have got it at the heart of the Single Page Application Architecture I am building currently. e.g. stionaJS.DAL.authenticate(creds) .pipe(listDomains) .done(withMultiUserDomain) .done(withSingleUserDomain) .fail(failedAuthentication);

I hasten to add, combining this with KnockoutJS works wonders!