<?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: Sniff Out That Smelly Code</title>
	<atom:link href="http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 14:53:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: links for 2009-10-24 &#171; Donghai Ma</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-315</link>
		<dc:creator>links for 2009-10-24 &#171; Donghai Ma</dc:creator>
		<pubDate>Sun, 25 Oct 2009 04:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-315</guid>
		<description>[...] Sniff Out That Smelly Code (tags: programming code tips refactoring development coding oop) [...]</description>
		<content:encoded><![CDATA[<p>[...] Sniff Out That Smelly Code (tags: programming code tips refactoring development coding oop) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KIZILSUNGUR</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-314</link>
		<dc:creator>KIZILSUNGUR</dc:creator>
		<pubDate>Fri, 16 Oct 2009 14:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-314</guid>
		<description>Great article!!!

http://pythontr.jimdo.com/

– KIZILSUNGUR</description>
		<content:encoded><![CDATA[<p>Great article!!!</p>
<p><a href="http://pythontr.jimdo.com/" rel="nofollow">http://pythontr.jimdo.com/</a></p>
<p>– KIZILSUNGUR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-313</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Fri, 25 Sep 2009 15:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-313</guid>
		<description>Nothing worse than having to go through line after line of somebody ELSE&#039;s ill-written code...</description>
		<content:encoded><![CDATA[<p>Nothing worse than having to go through line after line of somebody ELSE&#8217;s ill-written code&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leviathan</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-312</link>
		<dc:creator>Leviathan</dc:creator>
		<pubDate>Sat, 22 Aug 2009 15:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-312</guid>
		<description>Laziness is a programming virtue.</description>
		<content:encoded><![CDATA[<p>Laziness is a programming virtue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar Al Kababji</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-311</link>
		<dc:creator>Omar Al Kababji</dc:creator>
		<pubDate>Wed, 19 Aug 2009 11:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-311</guid>
		<description>I agree with almost every point, however even a copy operation is useful in an IDE of course not to duplicate a piece of code which is bad since you have to be DRY (don&#039;t repeat yourself). but sometimes you really need it, for example in EJB2 if you are using xDoclet you may need to keep copying the function meta tags repeatedly. or for example to copy the XML for creating a struts action and then refine it... there are many situations that need a Ctrl + C

I have wrote an article about efficient software development please visit it:

http://omarkababji.weebly.com/1/post/2009/08/efficient-software-development-12.html

Omar.</description>
		<content:encoded><![CDATA[<p>I agree with almost every point, however even a copy operation is useful in an IDE of course not to duplicate a piece of code which is bad since you have to be DRY (don&#8217;t repeat yourself). but sometimes you really need it, for example in EJB2 if you are using xDoclet you may need to keep copying the function meta tags repeatedly. or for example to copy the XML for creating a struts action and then refine it&#8230; there are many situations that need a Ctrl + C</p>
<p>I have wrote an article about efficient software development please visit it:</p>
<p><a href="http://omarkababji.weebly.com/1/post/2009/08/efficient-software-development-12.html" rel="nofollow">http://omarkababji.weebly.com/1/post/2009/08/efficient-software-development-12.html</a></p>
<p>Omar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dethrophes</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-310</link>
		<dc:creator>dethrophes</dc:creator>
		<pubDate>Sun, 02 Aug 2009 23:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-310</guid>
		<description>Hi
  First point the need or lack there of for copy and paste is  I believe related to the IDE/editor and weither it supports auto complete or not. I prefer a simpler editor and use copy and paste for function templates etc...

  I agree comments are bad in general largely because of seeing code like this.
  for (i=0;i&lt;3600;i++) /* 60 minutes */
  Basically because the comment don&#039;t get updated with the code.

  so it should be written more like
  for(i=0;i&lt;60*NUM_SEC_IN_MIN;i++)

Regarding Function argument I agree because of the stack overhead incurred.
However also due to stack overhead I only partially agree with function breakup, unless function inlining is supported with the compiler.</description>
		<content:encoded><![CDATA[<p>Hi<br />
  First point the need or lack there of for copy and paste is  I believe related to the IDE/editor and weither it supports auto complete or not. I prefer a simpler editor and use copy and paste for function templates etc&#8230;</p>
<p>  I agree comments are bad in general largely because of seeing code like this.<br />
  for (i=0;i&lt;3600;i++) /* 60 minutes */<br />
  Basically because the comment don&#8217;t get updated with the code.</p>
<p>  so it should be written more like<br />
  for(i=0;i&lt;60*NUM_SEC_IN_MIN;i++)</p>
<p>Regarding Function argument I agree because of the stack overhead incurred.<br />
However also due to stack overhead I only partially agree with function breakup, unless function inlining is supported with the compiler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coding Guidelines &#171; Niamathbasha&#8217;s Weblog</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-309</link>
		<dc:creator>Coding Guidelines &#171; Niamathbasha&#8217;s Weblog</dc:creator>
		<pubDate>Wed, 13 May 2009 11:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-309</guid>
		<description>[...] 13, 2009   Coding Guidelines 1. Long [...]</description>
		<content:encoded><![CDATA[<p>[...] 13, 2009   Coding Guidelines 1. Long [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJO</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-308</link>
		<dc:creator>TJO</dc:creator>
		<pubDate>Tue, 28 Apr 2009 03:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-308</guid>
		<description>Your nuts with some of this crap.  Over the top idealistic.  Give it a rest.</description>
		<content:encoded><![CDATA[<p>Your nuts with some of this crap.  Over the top idealistic.  Give it a rest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Coder</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-307</link>
		<dc:creator>PHP Coder</dc:creator>
		<pubDate>Sun, 26 Apr 2009 08:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-307</guid>
		<description>I willingly admit, I mostly code for fun and to create things that often only I use, so I am probably guilty of a lot of those things and don&#039;t consider myself a &#039;code guru&#039; or whatever.  However, my mostly used language is PHP in web development type projects with MYSQL and I have to say that I firmly disagree with the copy and paste issue.  I constantly am copying code from one page to another or one part of a page to another.  Not because I am leaving it exactly as it is, but because the basic structure is there that I need.  A good example is a MYSQL query.  Whether I&#039;m updating, selecting, or deleting, or whatever, each of those query types has a basic structure, and I use mostly the same vairables defining the queries and whatnot.  So when I have a query that is updating 10 fields in one table on one page, and I have another part of a page or another whole page that is updating say 8 fields on a different table maybe, to me copying the 10 field query, updating the one word values and field names (by a nice double click to highlight the word) and deleting the 2 unneeded field updates is way easier and less time consuming than re-writing the entire update query with all it&#039;s various fun coding symbols ({}[];&quot;\&#039;$?).  This is just one example of an incident where I think that copy and paste is not only ok, but more effecient.  That&#039;s just me though, good article, and go ahead and tell me if you think there is a better way to accomplish such a feat.  Myabe my carpals just aren&#039;t as masachistic as yours...</description>
		<content:encoded><![CDATA[<p>I willingly admit, I mostly code for fun and to create things that often only I use, so I am probably guilty of a lot of those things and don&#8217;t consider myself a &#8216;code guru&#8217; or whatever.  However, my mostly used language is PHP in web development type projects with MYSQL and I have to say that I firmly disagree with the copy and paste issue.  I constantly am copying code from one page to another or one part of a page to another.  Not because I am leaving it exactly as it is, but because the basic structure is there that I need.  A good example is a MYSQL query.  Whether I&#8217;m updating, selecting, or deleting, or whatever, each of those query types has a basic structure, and I use mostly the same vairables defining the queries and whatnot.  So when I have a query that is updating 10 fields in one table on one page, and I have another part of a page or another whole page that is updating say 8 fields on a different table maybe, to me copying the 10 field query, updating the one word values and field names (by a nice double click to highlight the word) and deleting the 2 unneeded field updates is way easier and less time consuming than re-writing the entire update query with all it&#8217;s various fun coding symbols ({}[];&#8221;\&#8217;$?).  This is just one example of an incident where I think that copy and paste is not only ok, but more effecient.  That&#8217;s just me though, good article, and go ahead and tell me if you think there is a better way to accomplish such a feat.  Myabe my carpals just aren&#8217;t as masachistic as yours&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://www.hackification.com/2009/01/20/sniff-out-that-smelly-code/comment-page-2/#comment-306</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Wed, 22 Apr 2009 22:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=58#comment-306</guid>
		<description>narcolepsy: +1

commented out code: anyone defending on account of &#039;preservation&#039; confuses his source file (your precious gold) with a scrap yard.
  -- &#039;We&#039;d have to write it again&#039;?! (*SHOCK*) Aren&#039;t you using a revision control system for that? Barf...
  -- &#039;Our users are vascillating between requirements&#039; -- we use branches/patchsets for that purpose.

Learn to use version control. Do not (ever) comment out code (except during unit testing and before commit).</description>
		<content:encoded><![CDATA[<p>narcolepsy: +1</p>
<p>commented out code: anyone defending on account of &#8216;preservation&#8217; confuses his source file (your precious gold) with a scrap yard.<br />
  &#8212; &#8216;We&#8217;d have to write it again&#8217;?! (*SHOCK*) Aren&#8217;t you using a revision control system for that? Barf&#8230;<br />
  &#8212; &#8216;Our users are vascillating between requirements&#8217; &#8212; we use branches/patchsets for that purpose.</p>
<p>Learn to use version control. Do not (ever) comment out code (except during unit testing and before commit).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
