<?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: Copy And Paste And Bugs</title>
	<atom:link href="http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/</link>
	<description>ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.</description>
	<lastBuildDate>Mon, 15 Mar 2010 11:52:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave</title>
		<link>http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3467</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 15 Sep 2009 16:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3467</guid>
		<description>Right, that&#039;s why I end with &quot;Sometimes copy and paste can&#039;t be avoided...&quot;

It&#039;s a call to be intentional about NOT creating the method or function rather than not creating it by default.</description>
		<content:encoded><![CDATA[<p>Right, that&#8217;s why I end with &#8220;Sometimes copy and paste can&#8217;t be avoided&#8230;&#8221;</p>
<p>It&#8217;s a call to be intentional about NOT creating the method or function rather than not creating it by default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Agius</title>
		<link>http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3466</link>
		<dc:creator>Karl Agius</dc:creator>
		<pubDate>Tue, 15 Sep 2009 16:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3466</guid>
		<description>I get what you mean about troubleshooting and cleaning up. I&#039;m just a bit wary of advocating the &#039;avoid duplication at all costs&#039; approach because it can lead to a mess just as much as inconsiderate duplication - say, methods with names that have nothing to do with the context they&#039;re being used in, weird hacks to existing methods that break more stuff, and so on. Something&#039;s always got to give; if someone doesn&#039;t take enough pride in their work to do things properly, forcing one side will break the other.

I take it that your post is more aimed towards sloppy coding in general, lack of testing, not enough expression of intent in code, and all those things which make a maintainer/troubleshooter&#039;s life so interesting; I definitely have to agree with you completely there.</description>
		<content:encoded><![CDATA[<p>I get what you mean about troubleshooting and cleaning up. I&#8217;m just a bit wary of advocating the &#8216;avoid duplication at all costs&#8217; approach because it can lead to a mess just as much as inconsiderate duplication &#8211; say, methods with names that have nothing to do with the context they&#8217;re being used in, weird hacks to existing methods that break more stuff, and so on. Something&#8217;s always got to give; if someone doesn&#8217;t take enough pride in their work to do things properly, forcing one side will break the other.</p>
<p>I take it that your post is more aimed towards sloppy coding in general, lack of testing, not enough expression of intent in code, and all those things which make a maintainer/troubleshooter&#8217;s life so interesting; I definitely have to agree with you completely there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3465</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 15 Sep 2009 15:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3465</guid>
		<description>Unfortunately, step three never happens for most of us.  While simply spending a bit more time AS YOU WRITE would solve the main problem in the first place.

Not using duplication analysis tool right now.  But that&#039;s more a factor of either having NO control over the code base I&#039;m working with/on.

I&#039;m a trouble shooter.  Rarely is finding duplicate code the solution to the problem, even though duplicating code IS often the cause.  That is, I get called in to find the problem and fix it, not to clean up the entire code base.. although that may be a recommendation that I make along the way.</description>
		<content:encoded><![CDATA[<p>Unfortunately, step three never happens for most of us.  While simply spending a bit more time AS YOU WRITE would solve the main problem in the first place.</p>
<p>Not using duplication analysis tool right now.  But that&#8217;s more a factor of either having NO control over the code base I&#8217;m working with/on.</p>
<p>I&#8217;m a trouble shooter.  Rarely is finding duplicate code the solution to the problem, even though duplicating code IS often the cause.  That is, I get called in to find the problem and fix it, not to clean up the entire code base.. although that may be a recommendation that I make along the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Agius</title>
		<link>http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3464</link>
		<dc:creator>Karl Agius</dc:creator>
		<pubDate>Tue, 15 Sep 2009 15:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3464</guid>
		<description>I feel your pain, as I&#039;m sure most coders out here do.

As much as I hate copy/pasting though, I do feel that Fowler&#039;s rule of three (the first time you write, the second time you duplicate, the third time you refactor) makes a lot more sense than always creating a method, class, or component to avoid duplication. That way lies a massively bloated code base.

On another note, do you use any code duplication analysis tools, and if so, which?

Thanks for the post :)</description>
		<content:encoded><![CDATA[<p>I feel your pain, as I&#8217;m sure most coders out here do.</p>
<p>As much as I hate copy/pasting though, I do feel that Fowler&#8217;s rule of three (the first time you write, the second time you duplicate, the third time you refactor) makes a lot more sense than always creating a method, class, or component to avoid duplication. That way lies a massively bloated code base.</p>
<p>On another note, do you use any code duplication analysis tools, and if so, which?</p>
<p>Thanks for the post <img src='http://blog.dmbcllc.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.208 seconds -->
