Why RSS Slash is Popular - Counting Your Comments

  • Revision slug: RSS/Article/Why_RSS_Slash_is_Popular_-_Counting_Your_Comments
  • Revision title: Why RSS Slash is Popular - Counting Your Comments
  • Revision id: 174950
  • Created:
  • Creator: Charles
  • Is current revision? No
  • Comment Added info about <slash:comments> short commings. And made other minor edits

Revision Content

Why RSS Slash is Popular - Counting Your Comments

Before the word blog was coined there was Slashdot. Slashdot is one of the most popular blogs on the Internet. With its own history and culture, it's responsible for the "First Post!" phenomena, the Anonymous Coward, and the recognition of the Slashdot Effect, a phenomena that adorns its name.

One of the quirks of Slashdot is that it includes a comments count, a humorous department, a hit parade, and a section with every blog post. RSS does not have any facilites for including this information in an <item>, so the RSS Slash Module exists to fill in this gap. An example using the most popular element of the RSS Slash Module is shown below:

   <?xml version="1.0">
   
   <rss version="2.0"
       xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   >
   
       <channel>
           <title>Example</title>
           <description>An RSS Example with Slash</description>
           <lastBuildDate>Sun, 15 May 2005 13:02:08 -0500</lastBuildDate>
           <link>http://www.example.com</link>
   
           <item>
               <title>First Article Post!</title>
               <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/114</guid>
               <pubDate>Sun, 15 May 2005 13:02:08 -0500</lastBuildDate></pubDate>
               <link>http://www.example.com/blog/2005/05/15/114</link>
               <slash:comments>43</slash:comments>
           </item>
   
           <item>
               <title>First Article Post!</title>
               <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/113</guid>
               <pubDate>Sun, 15 May 2005 10:55:12 -0500</lastBuildDate></pubDate>
               <link>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/113</link>
               <slash:comments>72</slash:comments>
           </item>
   
           <item>
               <title>First Article Post!</title>
               <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/112</guid>
               <pubDate>Sun, 15 May 2005 08:14:11 -0500</lastBuildDate></pubDate>
               <link>http://www.example.com/blog/2005/05/15/112</link>
               <slash:comments>118</slash:comments>
           </item>
       </channel>
   
   </rss>

The <slash:comments> element is it reason that the RSS Slash Module is popular. This element gives the (current) total number of comments made for the item -- for the blog post.

Although not necessay, people also often use other RSS Modules to get at (and read) the comments (since RSS does not currently provide facilities for this either). Some use the Well-Formed Web RSS Module for this. And some are now using Atomic RSS for this. (Using either of these 2 RSS modules is out of the scope of this article.)

In reality, an item's comments count could change at any given time. People can (potentially) post new comments to an item at any given time. And (SPAM) comments could get deleted. And thus the comments count that the <slash:comments> element provides is only a snapshot; it was only the comment count at a moment in time. One of the shortcomings of the <slash:comments> element is that does not tell you what that moment in time was. One could assume that the comment count was acurate at the moment in time specified in the <channel>'s <lastBuildDate> element, but that is a risky assumption given that no where is that mandated. And that RSS feeds that are aggregations of other RSS feeds will not be able to assert this.

Revision Source

<p>
</p>
<h2 name="Why_RSS_Slash_is_Popular_-_Counting_Your_Comments"> Why RSS Slash is Popular - Counting Your Comments </h2>
<p>Before the word <i>blog</i> was coined there was <a class="external" href="http://slashdot.org">Slashdot</a>.  Slashdot is one of the most popular blogs on the Internet.  With its own history and culture, it's responsible for the <i>"First Post!"</i> phenomena,  the <i>Anonymous Coward</i>, and the recognition of the <i>Slashdot Effect</i>, a phenomena that adorns its name.
</p><p>One of the quirks of Slashdot is that it includes a  <i>comments count</i>, a humorous <i>department</i>, a <i>hit parade</i>, and a <i>section</i> with every blog post.  RSS does not have any facilites for including this information in an <a href="en/RSS/Element/item">&lt;item&gt;</a>, so the <a href="en/RSS/Module/Slash">RSS Slash Module</a> exists to fill in this gap.  An example using the most popular element of the RSS Slash Module is shown below:
</p>
<pre class="eval">   &lt;?xml version="1.0"&gt;
   
   &lt;rss version="2.0"
       <b>xmlns:slash="<span class="plain">http://purl.org/rss/1.0/modules/slash/</span>"</b>
   &gt;
   
       &lt;channel&gt;
           &lt;title&gt;Example&lt;/title&gt;
           &lt;description&gt;An RSS Example with Slash&lt;/description&gt;
           &lt;lastBuildDate&gt;Sun, 15 May 2005 13:02:08 -0500&lt;/lastBuildDate&gt;
           &lt;link&gt;<span class="plain">http://www.example.com</span>&lt;/link&gt;
   
           &lt;item&gt;
               &lt;title&gt;First Article Post!&lt;/title&gt;
               &lt;guid&gt;<span class="plain">d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/114</span>&lt;/guid&gt;
               &lt;pubDate&gt;Sun, 15 May 2005 13:02:08 -0500&lt;/lastBuildDate&gt;&lt;/pubDate&gt;
               &lt;link&gt;<span class="plain">http://www.example.com/blog/2005/05/15/114</span>&lt;/link&gt;
               <b>&lt;slash:comments&gt;43&lt;/slash:comments&gt;</b>
           &lt;/item&gt;
   
           &lt;item&gt;
               &lt;title&gt;First Article Post!&lt;/title&gt;
               &lt;guid&gt;<span class="plain">d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/113</span>&lt;/guid&gt;
               &lt;pubDate&gt;Sun, 15 May 2005 10:55:12 -0500&lt;/lastBuildDate&gt;&lt;/pubDate&gt;
               &lt;link&gt;<span class="plain">d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/113</span>&lt;/link&gt;
               <b>&lt;slash:comments&gt;72&lt;/slash:comments&gt;</b>
           &lt;/item&gt;
   
           &lt;item&gt;
               &lt;title&gt;First Article Post!&lt;/title&gt;
               &lt;guid&gt;<span class="plain">d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/112</span>&lt;/guid&gt;
               &lt;pubDate&gt;Sun, 15 May 2005 08:14:11 -0500&lt;/lastBuildDate&gt;&lt;/pubDate&gt;
               &lt;link&gt;<span class="plain">http://www.example.com/blog/2005/05/15/112</span>&lt;/link&gt;
               <b>&lt;slash:comments&gt;118&lt;/slash:comments&gt;</b>
           &lt;/item&gt;
       &lt;/channel&gt;
   
   &lt;/rss&gt;
</pre>
<p>The <a href="en/RSS/Module/Slash/Element/comments">&lt;slash:comments&gt;</a> element is it reason that the RSS Slash Module is popular.  This element gives the (current) total number of comments made for the item -- for the blog post.
</p><p>Although not necessay, people also often use other RSS Modules to <i>get at</i> (and read) the comments (since RSS does not currently provide facilities for this either).  Some use the <a href="en/RSS/Module/Well-Formed_Web">Well-Formed Web RSS Module</a> for this.  And some are now using <a href="en/RSS/Module/Atom">Atomic RSS</a> for this.  (Using either of these 2 RSS modules is out of the scope of this article.)
</p><p>In reality, an item's comments count could change at any given time.  People can (potentially) post new comments to an item at any given time.  And (SPAM) comments could get deleted.  And thus the <i>comments count</i> that the &lt;slash:comments&gt; element provides is only a snapshot; it was only the <i>comment count</i> at a moment in time.  One of the shortcomings of the &lt;slash:comments&gt; element is that does not tell you what that moment in time was.  One could assume that the comment count was acurate at the moment in time specified in the &lt;channel&gt;'s <a href="en/RSS/Element/lastBuildDate">&lt;lastBuildDate&gt;</a> element, but that is a risky assumption given that no where is that mandated.  And that RSS feeds that are aggregations of other RSS feeds will not be able to assert this.
</p>
Revert to this revision