<?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: Why You Should Polish Your Code</title>
	<atom:link href="http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code</link>
	<description></description>
	<lastBuildDate>Fri, 12 Mar 2010 03:55:20 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: FollowSteph.com &#187; Latest Links</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-25422</link>
		<dc:creator>FollowSteph.com &#187; Latest Links</dc:creator>
		<pubDate>Sat, 28 Jul 2007 17:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-25422</guid>
		<description>[...] Why You Should Polish Your Code Having read and refactored a lot of other people&#8217;s code, I can&#8217;t express how important it is to clean up your code afterwards. Would you want your painter to leave his mess after he finishes painting your house? Clean up after yourself. [...]</description>
		<content:encoded><![CDATA[<p>[...] Why You Should Polish Your Code Having read and refactored a lot of other people&#8217;s code, I can&#8217;t express how important it is to clean up your code afterwards. Would you want your painter to leave his mess after he finishes painting your house? Clean up after yourself. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Northrop</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-24496</link>
		<dc:creator>Ben Northrop</dc:creator>
		<pubDate>Wed, 18 Jul 2007 16:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-24496</guid>
		<description>Great article.  Seems like a very fuzzy distinction between &quot;refactoring&quot; and &quot;polishing&quot; though.  From the Wikipedia, &quot;a code refactoring is any change to a computer program which improves its readability or simplifies its structure without changing its results.&quot;  With this definition, it doesn&#039;t seem like refactoring only applies to design, but rather to any change to code that enhances maintainability...in which case &quot;refactoring&quot; and &quot;polishing&quot; are quite similar, if not the same.

Anyway, great article.  I agree that reputation is a strong motivator for polishing/refactoring.</description>
		<content:encoded><![CDATA[<p>Great article.  Seems like a very fuzzy distinction between &#8220;refactoring&#8221; and &#8220;polishing&#8221; though.  From the Wikipedia, &#8220;a code refactoring is any change to a computer program which improves its readability or simplifies its structure without changing its results.&#8221;  With this definition, it doesn&#8217;t seem like refactoring only applies to design, but rather to any change to code that enhances maintainability&#8230;in which case &#8220;refactoring&#8221; and &#8220;polishing&#8221; are quite similar, if not the same.</p>
<p>Anyway, great article.  I agree that reputation is a strong motivator for polishing/refactoring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basil Vandegriend</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-23964</link>
		<dc:creator>Basil Vandegriend</dc:creator>
		<pubDate>Sat, 14 Jul 2007 14:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-23964</guid>
		<description>Nick, those are great questions.

Most of the changes I make when polishing code are indeed refactorings. Perhaps the one exception is adding or improving comments. I think the main difference is in intent: refactoring is focused only upon improving the design, whereas when I polish code my overall goal is to improve the maintainability of the code. This of course includes improving the design, but also addresses readability.

As for when to polish, I agree it could be done at different   points in the software development life cycle. My article was focused on doing it on your code just after you have &#039;finished&#039; writing it, both to challenge developers to create better code themselves, and because it fits the analogy of woodworking, where you polish a piece of wood as the final step. So while refactoring the code before you start to work on it often makes sense, to call that polishing goes against the grain of the analogy. 

Your comment seemed to imply that you would normally only polish or refactor code at one point in the SDLC. This I don&#039;t agree with. I believe that you should always polish code after working on it. Refactoring or cleaning up code before you start working on it is optional, but certainly doing both can make sense. So perhaps the key point of disagreement is &quot;how often&quot; instead of &quot;when&quot; :)</description>
		<content:encoded><![CDATA[<p>Nick, those are great questions.</p>
<p>Most of the changes I make when polishing code are indeed refactorings. Perhaps the one exception is adding or improving comments. I think the main difference is in intent: refactoring is focused only upon improving the design, whereas when I polish code my overall goal is to improve the maintainability of the code. This of course includes improving the design, but also addresses readability.</p>
<p>As for when to polish, I agree it could be done at different   points in the software development life cycle. My article was focused on doing it on your code just after you have &#8216;finished&#8217; writing it, both to challenge developers to create better code themselves, and because it fits the analogy of woodworking, where you polish a piece of wood as the final step. So while refactoring the code before you start to work on it often makes sense, to call that polishing goes against the grain of the analogy. </p>
<p>Your comment seemed to imply that you would normally only polish or refactor code at one point in the SDLC. This I don&#8217;t agree with. I believe that you should always polish code after working on it. Refactoring or cleaning up code before you start working on it is optional, but certainly doing both can make sense. So perhaps the key point of disagreement is &#8220;how often&#8221; instead of &#8220;when&#8221; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Malik</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-23854</link>
		<dc:creator>Nick Malik</dc:creator>
		<pubDate>Fri, 13 Jul 2007 17:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-23854</guid>
		<description>Would you consider the act of &#039;polishing code&#039; distinctly different, in some material way, from &#039;refactoring the code?&#039;  Many of the transformations you suggest are represented in the literation on refactoring.

The key point of disagreement appears to be &quot;when.&quot;  Some say: do it before first release, some say do it as a second pass, still other say to &#039;polish&#039; old code before you work on it, so that you know what you have.

Have you thought about the variations in &quot;when&quot; to polish the code between various SDLC processes?</description>
		<content:encoded><![CDATA[<p>Would you consider the act of &#8216;polishing code&#8217; distinctly different, in some material way, from &#8216;refactoring the code?&#8217;  Many of the transformations you suggest are represented in the literation on refactoring.</p>
<p>The key point of disagreement appears to be &#8220;when.&#8221;  Some say: do it before first release, some say do it as a second pass, still other say to &#8216;polish&#8217; old code before you work on it, so that you know what you have.</p>
<p>Have you thought about the variations in &#8220;when&#8221; to polish the code between various SDLC processes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-23345</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Mon, 09 Jul 2007 20:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-23345</guid>
		<description>Good post, thank you.

Keeping the code clear and polished helps reading, analyzing, maintaining, debugging and version controlling.
But be careful when you refactor your code: every change can introduce new bugs. Try to make frequent but small changes, and cover your code with unit testing to make changes safer...</description>
		<content:encoded><![CDATA[<p>Good post, thank you.</p>
<p>Keeping the code clear and polished helps reading, analyzing, maintaining, debugging and version controlling.<br />
But be careful when you refactor your code: every change can introduce new bugs. Try to make frequent but small changes, and cover your code with unit testing to make changes safer&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: La importancia de mantener el código fuente limpio - Un Blog Mas</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-22331</link>
		<dc:creator>La importancia de mantener el código fuente limpio - Un Blog Mas</dc:creator>
		<pubDate>Thu, 28 Jun 2007 15:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-22331</guid>
		<description>[...] Why you should polish your code es uno de esos artículos que recomendaría leer a todo aquel (yo, el primero) que ha programado alguna vez. Explica, en inglés, la importancia que tiene programar de una manera clara, estructurada y concisa. [...]</description>
		<content:encoded><![CDATA[<p>[...] Why you should polish your code es uno de esos artículos que recomendaría leer a todo aquel (yo, el primero) que ha programado alguna vez. Explica, en inglés, la importancia que tiene programar de una manera clara, estructurada y concisa. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basil Vandegriend</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-22294</link>
		<dc:creator>Basil Vandegriend</dc:creator>
		<pubDate>Thu, 28 Jun 2007 04:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-22294</guid>
		<description>Your comment wasn&#039;t the only one needing polishing :) Hopefully I got all the typos.</description>
		<content:encoded><![CDATA[<p>Your comment wasn&#8217;t the only one needing polishing :) Hopefully I got all the typos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-22241</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 27 Jun 2007 12:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-22241</guid>
		<description>Perhaps you could polish my previous comment Basil, typos galore :-)</description>
		<content:encoded><![CDATA[<p>Perhaps you could polish my previous comment Basil, typos galore :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Why You Should Polish Your Code &#171; Je pense en Java, Java is fun</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-22232</link>
		<dc:creator>Why You Should Polish Your Code &#171; Je pense en Java, Java is fun</dc:creator>
		<pubDate>Wed, 27 Jun 2007 09:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-22232</guid>
		<description>[...] Why You Should Polish Your&#160;Code Filed under: Software Development, Java, Programming &#8212; funjava @ 9:40 am. I highly recommend this article: Why You Should Polish Your Code [...]</description>
		<content:encoded><![CDATA[<p>[...] Why You Should Polish Your&nbsp;Code Filed under: Software Development, Java, Programming &#8212; funjava @ 9:40 am. I highly recommend this article: Why You Should Polish Your Code [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Squall</title>
		<link>http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code/comment-page-1#comment-22229</link>
		<dc:creator>Squall</dc:creator>
		<pubDate>Wed, 27 Jun 2007 09:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/why-you-should-polish-your-code#comment-22229</guid>
		<description>Totally agree with you. In fact, I consider polishing as a part of coding. That means I cannot feel that I have finished coding if I have not polished my code. 

Your list of problems is very helful. Recently, while polishing the code, I have found that one of my method does two different things at a time. Even the method is not long (about 15 lines). I have refactored it and created 2 methods. So I want to add the rule &quot;violation of the principle Single Responsibility&quot; to the list.

After testing and (quickly) polishing my code, I like to take a break, do other thing within 1 or 2 days and then return to my code for a thorough polishing. With this method, I can have a new look at my code (It&#039;s sad to avow that in my company, noone care about the quality of code, there is even no comment at all - so I do this work really for myself)</description>
		<content:encoded><![CDATA[<p>Totally agree with you. In fact, I consider polishing as a part of coding. That means I cannot feel that I have finished coding if I have not polished my code. </p>
<p>Your list of problems is very helful. Recently, while polishing the code, I have found that one of my method does two different things at a time. Even the method is not long (about 15 lines). I have refactored it and created 2 methods. So I want to add the rule &#8220;violation of the principle Single Responsibility&#8221; to the list.</p>
<p>After testing and (quickly) polishing my code, I like to take a break, do other thing within 1 or 2 days and then return to my code for a thorough polishing. With this method, I can have a new look at my code (It&#8217;s sad to avow that in my company, noone care about the quality of code, there is even no comment at all &#8211; so I do this work really for myself)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
