[Twisted-Python] jQuery.Deferred - why did they have to go and change the interface?

I'm in the process of switching some of my Javascript code from MochiKit.Async.Deferred to the recently introduced jQuery.Deferred. Does anyone else hate the confusing new method names they've chosen? Why couldn't they just stick with the tried and tested interface...aargh...it really pisses me off! * http://api.jquery.com/category/deferred-object/ * http://mochi.github.com/mochikit/doc/html/MochiKit/Async.html#fn-deferred * http://bazaar.launchpad.net/~richardw/jarmon/jquery-deferred/revision/73 -RichardW.

2011/6/28 Glyph Lefkowitz <glyph@twistedmatrix.com>:
No! Because it's not a Deferred. The JQuery Deferred has only a slight resemblance with Twisted's. Looking at the source code https://github.com/jquery/jquery/blob/master/src/deferred.js this implementation lacks many important features of the Deferred we know: - All callbacks are called with the same "result" - Impossible to recover from an errback (and call the next callback) - The callback chain is not paused when a callback returns another Deferred IOW, don't use it as a Deferred. The Mochikit implementation looks much more similar to Twisted. -- Amaury Forgeot d'Arc

On Mon, Jun 27, 2011 at 11:53 PM, Richard Wall <m-lists@the-moon.net> wrote:
At least they didn't change the API while keeping the names the same, like MochiKit did :/ -- mithrandi, i Ainil en-Balandor, a faer Ambar

2011/6/28 Glyph Lefkowitz <glyph@twistedmatrix.com>:
No! Because it's not a Deferred. The JQuery Deferred has only a slight resemblance with Twisted's. Looking at the source code https://github.com/jquery/jquery/blob/master/src/deferred.js this implementation lacks many important features of the Deferred we know: - All callbacks are called with the same "result" - Impossible to recover from an errback (and call the next callback) - The callback chain is not paused when a callback returns another Deferred IOW, don't use it as a Deferred. The Mochikit implementation looks much more similar to Twisted. -- Amaury Forgeot d'Arc

On Mon, Jun 27, 2011 at 11:53 PM, Richard Wall <m-lists@the-moon.net> wrote:
At least they didn't change the API while keeping the names the same, like MochiKit did :/ -- mithrandi, i Ainil en-Balandor, a faer Ambar
participants (6)
-
Amaury Forgeot d'Arc
-
Glyph Lefkowitz
-
Jasper St. Pierre
-
Jonathan Lange
-
Richard Wall
-
Tristan Seligmann