<?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>[Dot] Code Dump &#187; DRY</title>
	<atom:link href="http://www.dotcodedump.com/tag/dry/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotcodedump.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 06 Jan 2010 12:27:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Don&#8217;t Repeat Anyone&#8217;s Work (DRAW)</title>
		<link>http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/</link>
		<comments>http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 22:14:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DRAW]]></category>
		<category><![CDATA[DRY]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Re-Use]]></category>
		<category><![CDATA[Repeat]]></category>

		<guid isPermaLink="false">http://www.dotcodedump.com/?p=170</guid>
		<description><![CDATA[
As programmers we forget the fact that many of the problems we encounter every day have already been solved. We don&#8217;t need to write a sort algorithm, create a new type of data structure, or write an encryption library from scratch.  We try not to repeat ourselves, but we have no problem repeating every one [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-171 alignleft" style="margin: 5px;" title="Draw" src="http://www.dotcodedump.com/wp-content/uploads/2009/11/Draw.png" alt="Draw" width="233" height="200" /></p>
<p>As programmers we forget the fact that many of the problems we encounter every day have already been solved. We don&#8217;t need to write a sort algorithm, create a new type of data structure, or write an encryption library from scratch.  We try not to repeat ourselves, but we have no problem repeating every one else.</p>
<p>I know that programmers love acronyms, play on words, and guidelines. Therefore, I am proposing the DRAW principal. <strong>D</strong>on&#8217;t <strong>R</strong>epeat <strong>A</strong>nyone&#8217;s <strong>W</strong>ork.</p>
<p>This is defined as: Not solving generic and common problems that have already been solved. This may take many forms, it could be as simple as using a common library, or it may be more in depth such as reading the code of an open source application, or even looking up a general form of an algorithm.</p>
<p>This is a problem that many programmers have faced for a long time, and we have complained about it for a long time <a href="http://www.codinghorror.com/blog/archives/001311.html">here</a>, <a href="http://www.secretgeek.net/csv_trouble.asp">here</a>, and <a href="http://codemines.blogspot.com/2006/08/now-they-have-two-problems.html">here</a>. Sometimes we think we can solve a problem very quickly, sometimes we don&#8217;t know some one has already solved it, we may even think we can do a better job, or just maybe we are doing it for hack value. Whatever the reason we have all, took the time to solve a problem that has been solved before, that could have been handled with a quick Google search.</p>
<p style="text-align: left;">Many times Google will return an answer you are looking for. Last week I had to parse a comma delimited list, passed as a string from from a web service I was integrating into a .NET application. Below is the Google search I used, which return a number of results. Parsing CSV data is something that has been solved thousands of times before. It was that straightforward.</p>
<p style="text-align: center;"><img class="size-full wp-image-174 aligncenter" title="parsecsv" src="http://www.dotcodedump.com/wp-content/uploads/2009/11/parsecsv.png" alt="parsecsv" width="455" height="500" /></p>
<p>Part of being a good software developer is knowing when to be lazy, and find an already existing solution and when you have to hand code something. The basics of this principal is being knowledgeable about the language you are using, and being able to research problems, and leverage the resources of the developer community at large.</p>
<h5 style="text-align: center;">Footnote this is play on the <a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself">DRY Principle </a></h5>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/&amp;title=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/&amp;title=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/&amp;title=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29" rel="nofollow" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29&amp;url=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/&amp;title=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29" rel="nofollow" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/&amp;title=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/&amp;title=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/&amp;title=Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Don%26%238217%3Bt+Repeat+Anyone%26%238217%3Bs+Work+%28DRAW%29+@+http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.dotcodedump.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.dotcodedump.com/2009/11/dont-repeat-anyones-work-draw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
