<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: If Self-Documenting Code is the What, Unit Tests are the Why</title>
	<atom:link href="http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-self-documenting-code-is-the-what-unit-tests-are-the-why</link>
	<description></description>
	<lastBuildDate>Sun, 12 Feb 2012 18:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: master plastic</title>
		<link>http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/comment-page-1/#comment-64477</link>
		<dc:creator>master plastic</dc:creator>
		<pubDate>Sat, 10 Dec 2011 22:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/#comment-64477</guid>
		<description>Absolutely unique and fine piece of information. 
&lt;a href=&quot;http://master-pipe.com&quot; rel=&quot;nofollow&quot;&gt;pvc pakistan&lt;/a&gt; I&#039;ve never spent that much time reading before but this is really awesome..  
&lt;a href=&quot;http://masterpipe.pk&quot; rel=&quot;nofollow&quot;&gt;pvc&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>Absolutely unique and fine piece of information.<br />
<a href="http://master-pipe.com" rel="nofollow">pvc pakistan</a> I&#8217;ve never spent that much time reading before but this is really awesome.. <br />
<a href="http://masterpipe.pk" rel="nofollow">pvc</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alistair Rigney</title>
		<link>http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/comment-page-1/#comment-56755</link>
		<dc:creator>Alistair Rigney</dc:creator>
		<pubDate>Mon, 03 May 2010 07:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/#comment-56755</guid>
		<description>&lt;a href=&quot;#comment-56606&quot; rel=&quot;nofollow&quot;&gt;@tcmaster&lt;/a&gt; 
Thanks for your comments mate, however I think that you are barking up the wrong tree, if you are using a case tool or some other design tool to design your system then this is the place to put your serious comments in that will clarify your design to the developer, comments in text boxes, assocations, aggregations etc in UML diagrams are very important to give a developer a quick description of your ideas.
Other comments in code can be useful where you think this will clarify the code, after all this is implementation detail that can be very cryptic. I am rather suspicious of people who want to get rid of things that normal people normally do, this sounds like some sort of religious fundamentalism. Here is an example, what about a truth table, if this is in the design then I would expect to see this as a comment in the code.
Regards,
             Alistair</description>
		<content:encoded><![CDATA[<p><a href="#comment-56606" rel="nofollow">@tcmaster</a><br />
Thanks for your comments mate, however I think that you are barking up the wrong tree, if you are using a case tool or some other design tool to design your system then this is the place to put your serious comments in that will clarify your design to the developer, comments in text boxes, assocations, aggregations etc in UML diagrams are very important to give a developer a quick description of your ideas.<br />
Other comments in code can be useful where you think this will clarify the code, after all this is implementation detail that can be very cryptic. I am rather suspicious of people who want to get rid of things that normal people normally do, this sounds like some sort of religious fundamentalism. Here is an example, what about a truth table, if this is in the design then I would expect to see this as a comment in the code.<br />
Regards,<br />
             Alistair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Evans</title>
		<link>http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/comment-page-1/#comment-56739</link>
		<dc:creator>Ed Evans</dc:creator>
		<pubDate>Sun, 02 May 2010 18:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/#comment-56739</guid>
		<description>&lt;a href=&quot;#comment-56696&quot; rel=&quot;nofollow&quot;&gt;@Bill Sorensen&lt;/a&gt; I like &quot;Vomments&quot; as in &quot;he vomments all over his code&quot;</description>
		<content:encoded><![CDATA[<p><a href="#comment-56696" rel="nofollow">@Bill Sorensen</a> I like &#8220;Vomments&#8221; as in &#8220;he vomments all over his code&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sorensen</title>
		<link>http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/comment-page-1/#comment-56696</link>
		<dc:creator>Bill Sorensen</dc:creator>
		<pubDate>Fri, 30 Apr 2010 17:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/#comment-56696</guid>
		<description>Can I be the first to coin the word &quot;zomments&quot;? ;)</description>
		<content:encoded><![CDATA[<p>Can I be the first to coin the word &#8220;zomments&#8221;? <img src='http://elegantcode.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Py</title>
		<link>http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/comment-page-1/#comment-56640</link>
		<dc:creator>Steve Py</dc:creator>
		<pubDate>Tue, 27 Apr 2010 00:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/#comment-56640</guid>
		<description>That&#039;s a signature old-school development style, pre-VCS. I&#039;ve had to ween several developers out of the habit of commenting change history, or worse, commenting out old, replaced code when they&#039;re using a perfectly good code repository. The comments about why something was changed are best served as comments in the change log. A simple diff says a hell of a lot more about &quot;what&quot; changed than any comment could.

The best way to break this habbit is to show them something better. Demonstrate how meaningful comments in Subversion or TFS change history say how code is evolving ever so much more clearly than a comment in code. Of course, if everyone else *isn&#039;t* writing meaningful check-in comments then you&#039;re up a crik without a piddle.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a signature old-school development style, pre-VCS. I&#8217;ve had to ween several developers out of the habit of commenting change history, or worse, commenting out old, replaced code when they&#8217;re using a perfectly good code repository. The comments about why something was changed are best served as comments in the change log. A simple diff says a hell of a lot more about &#8220;what&#8221; changed than any comment could.</p>
<p>The best way to break this habbit is to show them something better. Demonstrate how meaningful comments in Subversion or TFS change history say how code is evolving ever so much more clearly than a comment in code. Of course, if everyone else *isn&#8217;t* writing meaningful check-in comments then you&#8217;re up a crik without a piddle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tcmaster</title>
		<link>http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/comment-page-1/#comment-56606</link>
		<dc:creator>tcmaster</dc:creator>
		<pubDate>Mon, 26 Apr 2010 16:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/#comment-56606</guid>
		<description>Interesting and I fully agree. But on the other hand, I should say 90% (or more) of the programmers have not read about &quot;clean code&quot;(the book), nor even they heard about removing comments. I personally know some ones who is still writing codes like:
// fix bug ticket XXXX start
   some code
// fix bug ticket XXXX end

so how do we handle them? Normally if there is just one guy like this in a team, then everything will be polluted sooner or later.</description>
		<content:encoded><![CDATA[<p>Interesting and I fully agree. But on the other hand, I should say 90% (or more) of the programmers have not read about &#8220;clean code&#8221;(the book), nor even they heard about removing comments. I personally know some ones who is still writing codes like:<br />
// fix bug ticket XXXX start<br />
   some code<br />
// fix bug ticket XXXX end</p>
<p>so how do we handle them? Normally if there is just one guy like this in a team, then everything will be polluted sooner or later.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

