andrewducker: (Default)
[personal profile] andrewducker
I've had a nice relaxing weekend, with the visiting of friends, a bit of tidying, a meal out with Julie, and then an evening learning how Deferred works in jQuery, and being introduced to the Ripple Currency Exchange, which is an absolutely fascinating idea that I suspect would have all sorts of interesting side-effects.

Date: 2013-04-22 08:11 am (UTC)
emceeaich: A close-up of a pair of cats-eye glasses (Default)
From: [personal profile] emceeaich
Deferred made my code so much more readable, and the lovely thing is that Backbone.Model.fetch/save/delete/etc and Backbone.Collection.fetch/etc all return JQuery deferred objects.

Date: 2013-04-23 01:32 am (UTC)
emceeaich: A close-up of a pair of cats-eye glasses (Default)
From: [personal profile] emceeaich
So in the case of Backbone.Model and Collection, any work I'm going to do when the deferred returns would be in the context of that object (like raising events on on the object depending on the return from a sync) so if I keep my context as the object where I'm creating the deferred in, then the object will maintain the portion of state I'm concerned with.

November 2025

S M T W T F S
       1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 1st, 2025 06:04 pm
Powered by Dreamwidth Studios