<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Technical Background of Digg&#8217;s new Comment System</title>
	<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Mon, 13 Oct 2008 14:07:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: dohpaz</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18869</link>
		<dc:creator>dohpaz</dc:creator>
		<pubDate>Sat, 14 Jul 2007 05:16:23 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18869</guid>
		<description>Hi, I just wanted to let you know that there is a new version of FlyDOM available at http://dohpaz.mine.nu/jquery/jquery.flydom.html

Also, thank you for using my plugin! :)</description>
		<content:encoded><![CDATA[<p>Hi, I just wanted to let you know that there is a new version of FlyDOM available at <a href="http://dohpaz.mine.nu/jquery/jquery.flydom.html" rel="nofollow">http://dohpaz.mine.nu/jquery/jquery.flydom.html</a></p>
<p>Also, thank you for using my plugin! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jake13jake</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18814</link>
		<dc:creator>jake13jake</dc:creator>
		<pubDate>Sat, 30 Jun 2007 19:46:13 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18814</guid>
		<description>Well, I've been waiting a bit, but there are a few stylistic issues I'm having problems with.

First, I can't post a reply to anyone if I have the page sorted by most diggs (which I usually do). However, I could understand that comments could be taken out of context in this sense.

I'm also no big fan of clipping the comments at the end of the page, there should really be an option for this.

Readability of the comments page would improve if responses were indented one level instead of completely boxed.

&#124;Person 1 says
&#124;  yadayadayadayada
&#124;  __________________
&#124;  &#124;1 reply to Person 1
&#124;  &#124;   ________________
&#124;  &#124;  &#124;Person 2 says
&#124;  &#124;  &#124; yabbadabbadoo
&#124;  &#124;  &#124;________________
&#124;  &#124;Reply to person 1  
&#124;  &#124;__________________
&#124;____________________

vs.

&#124;Person 1 says         &#124;
&#124;  yadayadyadayada &#124;
&#124;                   reply   &#124;
.  &#124;Person 2 says        &#124;
.  &#124; yabbadabbadoo    &#124;
.  &#124;                    reply &#124;

Which one looks easier to read?

These two styles look similar to these pages of the GNOME HIG v2:
http://developer.gnome.org/projects/gup/hig/2.0/controls-frames.html
http://developer.gnome.org/projects/gup/hig/2.0/design-window.html</description>
		<content:encoded><![CDATA[<p>Well, I&#8217;ve been waiting a bit, but there are a few stylistic issues I&#8217;m having problems with.</p>
<p>First, I can&#8217;t post a reply to anyone if I have the page sorted by most diggs (which I usually do). However, I could understand that comments could be taken out of context in this sense.</p>
<p>I&#8217;m also no big fan of clipping the comments at the end of the page, there should really be an option for this.</p>
<p>Readability of the comments page would improve if responses were indented one level instead of completely boxed.</p>
<p>|Person 1 says<br />
|  yadayadayadayada<br />
|  __________________<br />
|  |1 reply to Person 1<br />
|  |   ________________<br />
|  |  |Person 2 says<br />
|  |  | yabbadabbadoo<br />
|  |  |________________<br />
|  |Reply to person 1<br />
|  |__________________<br />
|____________________</p>
<p>vs.</p>
<p>|Person 1 says         |<br />
|  yadayadyadayada |<br />
|                   reply   |<br />
.  |Person 2 says        |<br />
.  | yabbadabbadoo    |<br />
.  |                    reply |</p>
<p>Which one looks easier to read?</p>
<p>These two styles look similar to these pages of the GNOME HIG v2:<br />
<a href="http://developer.gnome.org/projects/gup/hig/2.0/controls-frames.html" rel="nofollow">http://developer.gnome.org/projects/gup/hig/2.0/controls-frames.html</a><br />
<a href="http://developer.gnome.org/projects/gup/hig/2.0/design-window.html" rel="nofollow">http://developer.gnome.org/projects/gup/hig/2.0/design-window.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geary</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18694</link>
		<dc:creator>geary</dc:creator>
		<pubDate>Wed, 27 Jun 2007 00:28:24 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18694</guid>
		<description>Joe, if it turns out that the DOM generation is the bottleneck, but you still want to download JSON instead of HTML, consider generating HTML code in your JavaScript and using .innerHTML (or .html() in jQuery).

I wrote the first DOM creation plugin for jQuery, but I no longer use it much, nor any of the other DOM creation plugins that have come along since then. innerHTML is so much faster that there's no comparison. I use [].join('') to generate the HTML code - it is very fast and the code is readable too, e.g.

    var url = 'http://example.com/';
    var html = [
        '',
            '&lt;a href="', url, '" rel="nofollow"&gt;',
                'My Link',
            '&lt;/a&gt;',
        ''
    ].join('');

Let's hope that the comment system keeps the formatting in that code (fat chance?). :-)</description>
		<content:encoded><![CDATA[<p>Joe, if it turns out that the DOM generation is the bottleneck, but you still want to download JSON instead of HTML, consider generating HTML code in your JavaScript and using .innerHTML (or .html() in jQuery).</p>
<p>I wrote the first DOM creation plugin for jQuery, but I no longer use it much, nor any of the other DOM creation plugins that have come along since then. innerHTML is so much faster that there&#8217;s no comparison. I use [].join(&#8221;) to generate the HTML code - it is very fast and the code is readable too, e.g.</p>
<p>    var url = &#8216;http://example.com/&#8217;;<br />
    var html = [<br />
        &#8221;,<br />
            &#8216;<a href="', url, '" rel="nofollow">&#8216;,<br />
                &#8216;My Link&#8217;,<br />
            &#8216;</a>&#8216;,<br />
        &#8221;<br />
    ].join(&#8221;);</p>
<p>Let&#8217;s hope that the comment system keeps the formatting in that code (fat chance?). :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan &#187; Blog Archive &#187; Digg.com Adds Ajax Icing and JQuery</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18652</link>
		<dc:creator>Ryan &#187; Blog Archive &#187; Digg.com Adds Ajax Icing and JQuery</dc:creator>
		<pubDate>Tue, 26 Jun 2007 15:06:07 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18652</guid>
		<description>[...] when the user expands the list. All of the technical details are discussed by the implementor Joe Stump: Probably the coolest, technically speaking, portion of the new comments is the manner in which [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] when the user expands the list. All of the technical details are discussed by the implementor Joe Stump: Probably the coolest, technically speaking, portion of the new comments is the manner in which [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Another win for jQuery &#171; These are the days</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18410</link>
		<dc:creator>Another win for jQuery &#171; These are the days</dc:creator>
		<pubDate>Sun, 24 Jun 2007 10:36:44 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18410</guid>
		<description>[...] Link to Joe&#8217;s post [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Link to Joe&#8217;s post [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javascript, oh the choices! : [ mkhairul.com ]</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18381</link>
		<dc:creator>Javascript, oh the choices! : [ mkhairul.com ]</dc:creator>
		<pubDate>Sun, 24 Jun 2007 06:23:23 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18381</guid>
		<description>[...] To top it all, Digg is now using jQuery. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] To top it all, Digg is now using jQuery. [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reybango</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18339</link>
		<dc:creator>reybango</dc:creator>
		<pubDate>Fri, 22 Jun 2007 18:28:19 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18339</guid>
		<description>Joe, the jQuery project team is ecstatic that you've chosen to use the jQuery javascript library for the comment system. If there's anything we can do to help or if you encounter any issues, please do not hesitate to contact us. You can reach me at reybango (at) gmail {dot} com.</description>
		<content:encoded><![CDATA[<p>Joe, the jQuery project team is ecstatic that you&#8217;ve chosen to use the jQuery javascript library for the comment system. If there&#8217;s anything we can do to help or if you encounter any issues, please do not hesitate to contact us. You can reach me at reybango (at) gmail {dot} com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sstrudeau</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18337</link>
		<dc:creator>sstrudeau</dc:creator>
		<pubDate>Fri, 22 Jun 2007 15:45:25 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18337</guid>
		<description>This is very interesting -- thanks for the post.  

(1) I think it's interesting that you've chosen not to provide an alternative for users with Javascript turned off -- hiding information from users who choose to do so is considered a "no no" by the web standards and accessbility police.  I think the biggest problem is probably for users who use screen readers.  When/how was the choice made to *not* degrade the site gracefully?

(2) Kudus for "eating your own dog food" and using your public APIs and library.  I'm working on a project at my own gig where we've taken this approach.  We're actually co-developing a public API and an app that implements much of it, and it is helping us make good choices about how to design the API.

(3) How big a benefit do you think you get by generating the DOM on the fly vs. using an approach like jhaddad suggests and generating and returning the rendered HTML instead of the JSON?  It seems to me the former approach is a little easier maintain and I'd only take the latter approach if the UX benefit (or bandwidth costs) associated where significant...</description>
		<content:encoded><![CDATA[<p>This is very interesting &#8212; thanks for the post.  </p>
<p>(1) I think it&#8217;s interesting that you&#8217;ve chosen not to provide an alternative for users with Javascript turned off &#8212; hiding information from users who choose to do so is considered a &#8220;no no&#8221; by the web standards and accessbility police.  I think the biggest problem is probably for users who use screen readers.  When/how was the choice made to *not* degrade the site gracefully?</p>
<p>(2) Kudus for &#8220;eating your own dog food&#8221; and using your public APIs and library.  I&#8217;m working on a project at my own gig where we&#8217;ve taken this approach.  We&#8217;re actually co-developing a public API and an app that implements much of it, and it is helping us make good choices about how to design the API.</p>
<p>(3) How big a benefit do you think you get by generating the DOM on the fly vs. using an approach like jhaddad suggests and generating and returning the rendered HTML instead of the JSON?  It seems to me the former approach is a little easier maintain and I&#8217;d only take the latter approach if the UX benefit (or bandwidth costs) associated where significant&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Deaton</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18336</link>
		<dc:creator>Robert Deaton</dc:creator>
		<pubDate>Fri, 22 Jun 2007 13:34:55 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18336</guid>
		<description>I must say, to be quite honest, that you probably didn't really think this through and test it. The speed of the new system is horrendous. And why? The DOM is slow. Nobody's going to care that the story page loads well when their browser is slow in loading the comments which they wish to read. 

http://www.quirksmode.org/dom/innerhtml.html</description>
		<content:encoded><![CDATA[<p>I must say, to be quite honest, that you probably didn&#8217;t really think this through and test it. The speed of the new system is horrendous. And why? The DOM is slow. Nobody&#8217;s going to care that the story page loads well when their browser is slow in loading the comments which they wish to read. </p>
<p><a href="http://www.quirksmode.org/dom/innerhtml.html" rel="nofollow">http://www.quirksmode.org/dom/innerhtml.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery: Digg&#8217;s new comment system powered by jQuery &#171; Rip&#8217;s Domain</title>
		<link>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18331</link>
		<dc:creator>jQuery: Digg&#8217;s new comment system powered by jQuery &#171; Rip&#8217;s Domain</dc:creator>
		<pubDate>Fri, 22 Jun 2007 02:04:56 +0000</pubDate>
		<guid>http://www.joestump.net/2007/06/technical-background-of-diggs-new-comment-system.html#comment-18331</guid>
		<description>[...] who, in a post about the technical aspects behind the new comment system, it was revealed that the new system is [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] who, in a post about the technical aspects behind the new comment system, it was revealed that the new system is [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
