<?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: The danger of commenting out code</title>
	<atom:link href="http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 13 Mar 2010 16:40:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stephen McMahon</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-27445</link>
		<dc:creator>Stephen McMahon</dc:creator>
		<pubDate>Mon, 30 Nov 2009 23:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-27445</guid>
		<description>It is my opinion that commenting out code is discourteous to other developers.  Nothing to me is more frustrating than being assigned to find a bug in another developer&#039;s code only to find that the file is loaded with dead code.   I&#039;m dealing with a c# source file now for which not only is about 80% of it commented out, many of the commented out sections are surrounded with things like &quot;#region Commented out&quot;  No joke.</description>
		<content:encoded><![CDATA[<p>It is my opinion that commenting out code is discourteous to other developers.  Nothing to me is more frustrating than being assigned to find a bug in another developer's code only to find that the file is loaded with dead code.   I'm dealing with a c# source file now for which not only is about 80% of it commented out, many of the commented out sections are surrounded with things like "#region Commented out"  No joke.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiendq</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-21740</link>
		<dc:creator>Tiendq</dc:creator>
		<pubDate>Wed, 26 Aug 2009 08:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-21740</guid>
		<description>From my experiences developers often make long commenting out code for reference later, and they often forget to remove it when it is unnecessary too. It makes messy code. If you just want to do a quick test, feel free to comment code but please don&#039;t commit to code repository. It is likely that only you who know why the code is commented out.</description>
		<content:encoded><![CDATA[<p>From my experiences developers often make long commenting out code for reference later, and they often forget to remove it when it is unnecessary too. It makes messy code. If you just want to do a quick test, feel free to comment code but please don't commit to code repository. It is likely that only you who know why the code is commented out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coding: Unused code at Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-21604</link>
		<dc:creator>Coding: Unused code at Mark Needham</dc:creator>
		<pubDate>Thu, 20 Aug 2009 22:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-21604</guid>
		<description>[...] a way it is comparable to commenting code in that it creates doubt in people&#039;s minds about whether or not the code is actually important or [...]</description>
		<content:encoded><![CDATA[<p>[...] a way it is comparable to commenting code in that it creates doubt in people's minds about whether or not the code is actually important or [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Refactoring: Removing duplication more safely at Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-18517</link>
		<dc:creator>Refactoring: Removing duplication more safely at Mark Needham</dc:creator>
		<pubDate>Thu, 11 Jun 2009 23:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-18517</guid>
		<description>[...] was going on in the setup and then delete it once we had done so. I&#039;ve written previously about my dislike for commented code but we were using it in this case as a mechanism to guide our refactoring and we didn&#039;t ever check [...]</description>
		<content:encoded><![CDATA[<p>[...] was going on in the setup and then delete it once we had done so. I've written previously about my dislike for commented code but we were using it in this case as a mechanism to guide our refactoring and we didn't ever check [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-18127</link>
		<dc:creator>Mark Needham</dc:creator>
		<pubDate>Wed, 03 Jun 2009 21:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-18127</guid>
		<description>Possibly even more nightmareish is when abbreviations on variable names no longer matches the class name because the class name has changed and the variable name hasn&#039;t. Then the code is truly confusing.

There&#039;s a really good section in Code Complete about how we should name thhings in our code. I think I need to read it again from time to time to remind myself.</description>
		<content:encoded><![CDATA[<p>Possibly even more nightmareish is when abbreviations on variable names no longer matches the class name because the class name has changed and the variable name hasn't. Then the code is truly confusing.</p>
<p>There's a really good section in Code Complete about how we should name thhings in our code. I think I need to read it again from time to time to remind myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-18122</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 03 Jun 2009 17:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-18122</guid>
		<description>Finally, I thougth I was the only one that hated commented codes, the distraction, I cant stand it.

if you use good descriptions of you&#039;re functions, objects and variables, and space out you&#039;re code reasonnably, comments are useless.

But I also hate when they short name something, as dt for a datatable. Something like dtCarMakes keeps it simple, clear, and commenting it would d be useless.</description>
		<content:encoded><![CDATA[<p>Finally, I thougth I was the only one that hated commented codes, the distraction, I cant stand it.</p>
<p>if you use good descriptions of you're functions, objects and variables, and space out you're code reasonnably, comments are useless.</p>
<p>But I also hate when they short name something, as dt for a datatable. Something like dtCarMakes keeps it simple, clear, and commenting it would d be useless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Cameron</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-15044</link>
		<dc:creator>Dave Cameron</dc:creator>
		<pubDate>Wed, 22 Apr 2009 03:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-15044</guid>
		<description>A few people are referring to this, but I think it&#039;s worth calling out explicitly: commenting out code undermines the team&#039;s confidence in the code. It is close to an outright admission of &quot;we don&#039;t understand how the system works, we don&#039;t understand how to fix it, we&#039;re just trying things and hoping it starts working better.&quot; That&#039;s not a great situation to be in. 

Even if that is close to reality, it&#039;s better to start building confidence by making deliberate changes. If the change is wrong, that&#039;s okay, and use version control to revert it.

Don&#039;t be so afraid of making a mistake though, that old code is just buried further and further under comments in some sort of code-based landfill.</description>
		<content:encoded><![CDATA[<p>A few people are referring to this, but I think it's worth calling out explicitly: commenting out code undermines the team's confidence in the code. It is close to an outright admission of "we don't understand how the system works, we don't understand how to fix it, we're just trying things and hoping it starts working better." That's not a great situation to be in. </p>
<p>Even if that is close to reality, it's better to start building confidence by making deliberate changes. If the change is wrong, that's okay, and use version control to revert it.</p>
<p>Don't be so afraid of making a mistake though, that old code is just buried further and further under comments in some sort of code-based landfill.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agile: What is it? at Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-8372</link>
		<dc:creator>Agile: What is it? at Mark Needham</dc:creator>
		<pubDate>Mon, 09 Feb 2009 07:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-8372</guid>
		<description>[...] previously written about the dangers of commenting code so I don&#039;t want to revisit that too much, suffice to say that it it usually possible to describe [...]</description>
		<content:encoded><![CDATA[<p>[...] previously written about the dangers of commenting code so I don't want to revisit that too much, suffice to say that it it usually possible to describe [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul A Houle</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-4739</link>
		<dc:creator>Paul A Houle</dc:creator>
		<pubDate>Thu, 22 Jan 2009 17:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-4739</guid>
		<description>Hell yeah.

I worked with a team that loved to comment out code.  Some source files were 80% commented code and 20% working code.  This hurt readability a lot!</description>
		<content:encoded><![CDATA[<p>Hell yeah.</p>
<p>I worked with a team that loved to comment out code.  Some source files were 80% commented code and 20% working code.  This hurt readability a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K. Adam Christensen</title>
		<link>http://www.markhneedham.com/blog/2009/01/17/the-danger-of-commenting-out-code/comment-page-1/#comment-4576</link>
		<dc:creator>K. Adam Christensen</dc:creator>
		<pubDate>Wed, 21 Jan 2009 16:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=853#comment-4576</guid>
		<description>Another reason, and for me, this is the most important: This can mess up merges.

I&#039;ve run into merges where commented blocks get intertwined with functional blocks and it&#039;s just a mess.  It could even be something as innocuous as reformatting the commented blocks that end up causing a lot of unwanted pain.</description>
		<content:encoded><![CDATA[<p>Another reason, and for me, this is the most important: This can mess up merges.</p>
<p>I've run into merges where commented blocks get intertwined with functional blocks and it's just a mess.  It could even be something as innocuous as reformatting the commented blocks that end up causing a lot of unwanted pain.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
