<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kdmurray.blog &#187; commenting</title>
	<atom:link href="http://kdmurray.net/tag/commenting/feed/" rel="self" type="application/rss+xml" />
	<link>http://kdmurray.net</link>
	<description>The crossroads of life and tech</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:34:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Regaining my Chops</title>
		<link>http://kdmurray.net/2009/06/30/regaining-my-chops/</link>
		<comments>http://kdmurray.net/2009/06/30/regaining-my-chops/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 07:10:15 +0000</pubDate>
		<dc:creator>kdmurray</dc:creator>
				<category><![CDATA[Soapbox]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[commenting]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[refactoring]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kdmurray.net/?p=713</guid>
		<description><![CDATA[It&#8217;s been a good long while since I&#8217;ve written much in the way of production code. I&#8217;ve tinkered here and there with some small side projects, but rarely have I given much thought into how those pieces of code were written so long as they got the job done; after all I didn&#8217;t expect that [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a good long while since I&#8217;ve written much in the way of production code.  I&#8217;ve tinkered here and there with some small side projects, but rarely have I given much thought into how those pieces of code were written so long as they got the job done; after all I didn&#8217;t expect that the code would ever leave my own desk.</p>
<p>During a recent vacation I had the opportunity to help my brother-in-law with a project.  It took a few iterations but we managed to get some code written which fulfilled the need in just a few nights&#8217; work.  Though the complexity was about the same as my own small personal projects, this project was different.   It was for a client &#8212; albeit a client who I wasn&#8217;t charging money for the work.   Someone else was going to read and maintain this code so I knew that I had to take some measures that I hadn&#8217;t been used to taking recently.</p>
<p><span style="text-decoration: underline;"><strong>The first was <a title="Posts tagged 'Refactoring' on Stack Overflow" href="http://stackoverflow.com/questions/tagged/refactoring" target="_blank">refactoring</a></strong></span>.  I refactored the crap out of this application &#8212; and for the most part things worked out nicely.  I was able to turn all my poorly named and one-character variable names into elements and objects with meaningful monikers.</p>
<p><span style="text-decoration: underline;"><strong><a title="Posts tagged 'Comments' on Stack Overflow" href="http://stackoverflow.com/questions/tagged/comments" target="_blank">Commenting</a> was the next step</strong></span>.  After the refactoring was completed I could move on to the next step of the application which was to put in some descriptive comments in the applications.  These comments describe not the what, but the why.   This is the approach I&#8217;ve tried to take relying on good naming within the application to describe the what, and comments to provide rationale.</p>
<p>The final thing I did was take my brother-in-law through the code.  He has a background in software but has never done much in the way of OO (he writes Cobol) and hasn&#8217;t ever worked with the .NET languages.  In doing the walkthrough we came across a few minor issues and a couple of small enhancements for the application.</p>
<p>All told I spent about 25 hours working on this project, and in that short amount of time, I really did begin to regain my programming chops.  I&#8217;ve got a ways to go yet before I get to a level that I&#8217;d be comfortable with, but it&#8217;s a start.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://kdmurray.net/2009/06/30/regaining-my-chops/&via=kdmurray&text=Regaining my Chops&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://kdmurray.net/2009/06/30/regaining-my-chops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 469/487 objects using disk: basic

Served from: kdmurray.net @ 2012-02-09 01:16:34 -->
