<?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: Noobness Revealed</title>
	<atom:link href="http://www.reverttoconsole.com/blog/general/noobness-revealed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reverttoconsole.com/blog/general/noobness-revealed/</link>
	<description>for f in *;do echo &#124; sed 'i\rtc' &#62;&#62; $f;done;</description>
	<lastBuildDate>Mon, 30 Aug 2010 16:33:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: jeff</title>
		<link>http://www.reverttoconsole.com/blog/general/noobness-revealed/comment-page-1/#comment-103</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Fri, 07 Mar 2008 05:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/163#comment-103</guid>
		<description>I personally hate long nested conditional statements:

&lt;pre&gt;
if(conditionOne()){

//  Write 100 lines of code here
  if(conditionTwo()){
// add 100 more lines of code
  } else {
// add 100 more lines of code
    if(conditionThree()) {
     [...]
    } else {
     [...]
    }
  }
} else {

[...]

}
&lt;/pre&gt;
And prefer either achieving the same effect with methods instead of the long code blocks, or where possible using a switch statement for clarity:

&lt;pre&gt;
if(conditionOne()){

  methodToDoConditionOneWork();

  if(conditionTwo()){
    methodForConditionTwo();
  } else {
    methodForConditionTwoB();
    if(conditionThree()) {
     [...]
    } else {
     [...]
    }
  }
} else {

[...]

}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I personally hate long nested conditional statements:</p>
<pre>
if(conditionOne()){

//  Write 100 lines of code here
  if(conditionTwo()){
// add 100 more lines of code
  } else {
// add 100 more lines of code
    if(conditionThree()) {
     [...]
    } else {
     [...]
    }
  }
} else {

[...]

}
</pre>
<p>And prefer either achieving the same effect with methods instead of the long code blocks, or where possible using a switch statement for clarity:</p>
<pre>
if(conditionOne()){

  methodToDoConditionOneWork();

  if(conditionTwo()){
    methodForConditionTwo();
  } else {
    methodForConditionTwoB();
    if(conditionThree()) {
     [...]
    } else {
     [...]
    }
  }
} else {

[...]

}
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
