<div dir="ltr">On Mon, Aug 25, 2008 at 8:00 AM, Jesse Vincent <span dir="ltr">&lt;<a href="mailto:jesse@bestpractical.com">jesse@bestpractical.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sterling,<br>
<br>
My cranky-architect comments are that the name &quot;metadata&quot; isn&#39;t really<br>
very evocative and that without docs or tests, the patch isn&#39;t likely<br>
to be used by many people and is likely to get &nbsp;broken the first time<br>
someone tries to clean up one of these codepaths.</blockquote><div><br>Agreed. Which is why I essentially said not to use the patch in the comments. It&#39;s more a proof of concept than a useful hunk of code at this point. However, if there was a mechanism for injecting some information into the returned response that could be reacted to, I think that would be swell. Currently, I&#39;d have to implement such a thing on my own.<br>
<br>I&#39;m going to see if I can come up with something that&#39;s more flexible and less likely to bring out the cranky-architect. After looking through jifty.js in detail, it looks like Jifty.update() and related functions really ought to be refactored as a Jifty.Update class (probably with a better name than that) with parts that could be used separately and would be more extensible. I could see Ajax and PubSub being extensions of some base with the potential of the application further extending them and then setting:<br>
<br>framework:<br>&nbsp; javascript:<br>&nbsp;&nbsp;&nbsp; ajax_update_class: MyApp.AjaxUpdate<br>&nbsp;&nbsp;&nbsp; pubsub_update_class: MyApp.PubSubUpdate<br><br>to make all the event handler code use a custom class instead. Just thinking out loud...<br>
<br>Cheers,<br>Sterling<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
In general, though, I&#39;m a fan. I know that we&#39;ve had code that does<br>
something along these lines before, though I don&#39;t recall the exact<br>
mechanism. &nbsp;Similarly, alex has been doing a lot of work on the pubsub<br>
stuff and I know it&#39;s possible for the server to build up and stream a<br>
queue of fragment updates for the client side. It&#39;d be cool if there<br>
were more unity between these mechanisms.<br>
<br>
-j<br>
_______________________________________________<br>
jifty-devel mailing list<br>
<a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br>
<a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>
</blockquote></div><br></div>