<HTML>
<HEAD>
<TITLE>Re: [Twisted-Python] Twisted vs jQuery Deferreds (was Re: RPC design questions)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Jasper, Allen, Richard,<BR>
<BR>
thanks all for the pointers. I am confused now;)<BR>
<BR>
No, seriously, I need to _test_ those libs, to see what they actually do.<BR>
<BR>
I.e. I suspect the "new Dojo Deferreds" with "then" return something<BR>
different than the broken "then" in jQuery 1.5. <BR>
<BR>
This is all messy, personally, I want the Twisted semantics in JS, but want<BR>
to choose something "mainstream" to make it easy for users to adopt.<BR>
<BR>
Well. I'll give me an hour tomorrow to look into Dojo and Mochikit.<BR>
<BR>
<BR>
On 25.08.11 02:01, "Richard Wall" <<a href="m-lists@the-moon.net">m-lists@the-moon.net</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On 25 August 2011 00:30, Tobias Oberstein <<a href="tobias.oberstein@tavendo.de">tobias.oberstein@tavendo.de</a>> wrote:<BR>
<snip><BR>
> I am still wondering why they called the other stuff "then()" when it's not<BR>
> then, but "also()"<BR>
> and "pipe()" is the real <then> ;)<BR>
<BR>
I agree. I had the same frustration a few months ago and various<BR>
Twisted people pointed out missing features in Jquery deferred:<BR>
* <a href="http://twistedmatrix.com/pipermail/twisted-python/2011-June/024146.html">http://twistedmatrix.com/pipermail/twisted-python/2011-June/024146.html</a><BR>
<BR>
Mochikit is the best (and original) JS port of deferred..Dojo and<BR>
Google Closure both credit Mochikit (and Twisted) in their source<BR>
code. I'm planning to revert back to it.<BR>
<BR>
I guess it would be useful / constructive to compile a list of the<BR>
weaknesses in the jquery / commonjs deferred API and the reasons and<BR>
use cases for the Twisted deferred API.<BR>
Perhaps they can be persuaded to evolve towards the Twisted API in time.<BR>
<BR>
-RichardW.<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>