<?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: Clean Code</title>
	<link>http://ntschutta.com/jat/2005/11/21/clean-code/</link>
	<description>Just A Thought...on Ajax, usability, software development and anything else that catches my fancy.</description>
	<pubDate>Fri, 05 Dec 2008 11:08:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Nate</title>
		<link>http://ntschutta.com/jat/2005/11/21/clean-code/#comment-44</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Tue, 29 Nov 2005 03:07:57 +0000</pubDate>
		<guid>http://ntschutta.com/jat/2005/11/21/clean-code/#comment-44</guid>
		<description>I think you are talking about the prototypicall TODO comment.  To me, it's one thing to leave yourself some reminders but to comment out code that truly isn't functioning anymore is just setting yourself up for pain.  That said, I have to consider the YAGNI principle (http://xp.c2.com/YouArentGonnaNeedIt.html) - when you write a comment like that you might *think* you will need to turn this on, but how often have you actually done it?  You hit it right on the head when you said "Now I have no idea what this code is referring to any more."  Exactly.  You did when you wrote it...but that was two months (OK two days) ago.  Frankly, I think clean code that is easily modified will provide greater benefit than you *might* get from a bread-crumb like that.</description>
		<content:encoded><![CDATA[<p>I think you are talking about the prototypicall TODO comment.  To me, it&#8217;s one thing to leave yourself some reminders but to comment out code that truly isn&#8217;t functioning anymore is just setting yourself up for pain.  That said, I have to consider the YAGNI principle (http://xp.c2.com/YouArentGonnaNeedIt.html) - when you write a comment like that you might *think* you will need to turn this on, but how often have you actually done it?  You hit it right on the head when you said &#8220;Now I have no idea what this code is referring to any more.&#8221;  Exactly.  You did when you wrote it&#8230;but that was two months (OK two days) ago.  Frankly, I think clean code that is easily modified will provide greater benefit than you *might* get from a bread-crumb like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://ntschutta.com/jat/2005/11/21/clean-code/#comment-42</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Mon, 28 Nov 2005 00:18:26 +0000</pubDate>
		<guid>http://ntschutta.com/jat/2005/11/21/clean-code/#comment-42</guid>
		<description>I agree with you about dead code.  If its not being used, you are just cluttering the program and making things more difficult.  However, I have stumbled upon this several times in code that always makes me pause when i want to delete it.  It almost always looks like this:

//Here's something that we should turn on later when xyz happens...
//DoSomethingImportant();

Now I have no idea what this code is referring to any more.  In my mind if this code should be functioning why isn't it uncommented?  However, how do I bring myself to delete something that obviously was meant to serve a purpose?  No one is ever going to go back into source code control to retrieve something that they don't even know exists.  What do you think about this?</description>
		<content:encoded><![CDATA[<p>I agree with you about dead code.  If its not being used, you are just cluttering the program and making things more difficult.  However, I have stumbled upon this several times in code that always makes me pause when i want to delete it.  It almost always looks like this:</p>
<p>//Here&#8217;s something that we should turn on later when xyz happens&#8230;<br />
//DoSomethingImportant();</p>
<p>Now I have no idea what this code is referring to any more.  In my mind if this code should be functioning why isn&#8217;t it uncommented?  However, how do I bring myself to delete something that obviously was meant to serve a purpose?  No one is ever going to go back into source code control to retrieve something that they don&#8217;t even know exists.  What do you think about this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
