My question is pretty general, and some related questions can be found on SO, but none of them are really what I'm looking for.
I read / discussed with the jQuery Deferred object , and I see that it is used a lot in the library itself for processing requests and ajax animations, etc. I understand the general functionality and believe that it has been very useful in some situations. The jQuery library solves some problems quite elegantly using this concept.
Now my question is: I think it would be very useful to have an idea of the various problem / solution scenarios that can be solved elegantly and reliably using the Deferred object.
In what situations is this solution used to run jQuery Deferred? What common patterns in javascript software design can be distinguished that can be solved most elegantly using jQuery Deferred functionality? I am going to make a list of fairly general patterns (as opposed to very specific examples), in the spirit of a group of four design patterns that every OO analyst knows about.
With such a list in the back of the head, when developing jQuery solutions, it should become second nature to use these deferred templates just like a bridge, factory, ... templates already help us design flexible and reliable solutions without having to reinvent the wheel every time.
source
share