<?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: if cascade</title>
	<atom:link href="http://blog.hma-info.de/2008/03/20/if-cascade/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hma-info.de/2008/03/20/if-cascade/</link>
	<description>Fabians random thoughts about work and private life</description>
	<lastBuildDate>Sat, 02 Jul 2011 11:40:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Apotomo Cookbook &#187; Blog Archive &#187; Using Cells View Inheritance to clean up your views</title>
		<link>http://blog.hma-info.de/2008/03/20/if-cascade/comment-page-1/#comment-26704</link>
		<dc:creator>Apotomo Cookbook &#187; Blog Archive &#187; Using Cells View Inheritance to clean up your views</dc:creator>
		<pubDate>Mon, 12 Apr 2010 18:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/2008/03/20/if-cascade/#comment-26704</guid>
		<description>[...] start getting really ugly when there are more conditions to respect and end up in a medieval if-cascade. It&#8217;s geting even worse when those deciders are copied and spread across multiple [...]</description>
		<content:encoded><![CDATA[<p>[...] start getting really ugly when there are more conditions to respect and end up in a medieval if-cascade. It&#8217;s geting even worse when those deciders are copied and spread across multiple [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guildenstern</title>
		<link>http://blog.hma-info.de/2008/03/20/if-cascade/comment-page-1/#comment-4207</link>
		<dc:creator>Guildenstern</dc:creator>
		<pubDate>Tue, 08 Apr 2008 13:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/2008/03/20/if-cascade/#comment-4207</guid>
		<description>I found today something like this:

&lt;pre lang=&quot;java5&quot;&gt;
int retval;
retval = foo1();
if (retval == SUCCESS)
{
   retval = foo2();
  if (retval == SUCCESS)
  {
     retval = foo3();
(...)
 }
}
&lt;/pre&gt;
up to foo8()
but at least with different else clauses</description>
		<content:encoded><![CDATA[<p>I found today something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="java5" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">int</span> retval<span style="color: #339933;">;</span>
retval = foo1<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>retval == SUCCESS<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
   retval = foo2<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>retval == SUCCESS<span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
     retval = foo3<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#40;</span>...<span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>up to foo8()<br />
but at least with different else clauses</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabian</title>
		<link>http://blog.hma-info.de/2008/03/20/if-cascade/comment-page-1/#comment-4062</link>
		<dc:creator>Fabian</dc:creator>
		<pubDate>Thu, 27 Mar 2008 09:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/2008/03/20/if-cascade/#comment-4062</guid>
		<description>in the same code i found:
&lt;pre lang=&quot;java5&quot;&gt;
        //some code here
        myPs.execute();
        if (myPs!= null)
            myPs.close();
        //some code here
&lt;/pre&gt;
lovely :-)</description>
		<content:encoded><![CDATA[<p>in the same code i found:</p>

<div class="wp_syntax"><div class="code"><pre class="java5" style="font-family:monospace;">        <span style="color: #666666; font-style: italic;">//some code here</span>
        myPs.<span style="color: #006633;">execute</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>myPs<span style="color: #339933;">!</span>= <span style="color: #006600; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
            myPs.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">//some code here</span></pre></div></div>

<p>lovely <img src='http://blog.hma-info.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabian</title>
		<link>http://blog.hma-info.de/2008/03/20/if-cascade/comment-page-1/#comment-3947</link>
		<dc:creator>Fabian</dc:creator>
		<pubDate>Thu, 20 Mar 2008 12:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/2008/03/20/if-cascade/#comment-3947</guid>
		<description>Its a standard left to right short circuit boolean operations. I am not aware of a language not doing so :-)</description>
		<content:encoded><![CDATA[<p>Its a standard left to right short circuit boolean operations. I am not aware of a language not doing so <img src='http://blog.hma-info.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guildenstern</title>
		<link>http://blog.hma-info.de/2008/03/20/if-cascade/comment-page-1/#comment-3946</link>
		<dc:creator>Guildenstern</dc:creator>
		<pubDate>Thu, 20 Mar 2008 11:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/2008/03/20/if-cascade/#comment-3946</guid>
		<description>no proposal but an annotation:

is the execution order of these functions relevant? If yes I wouldn&#039;t like your proposal Fabian, because non-expert programmers might no know in which order the if statement is processed. Since I don&#039;t JAVA I have no clue. My C++ compiler would resolve this from left to right but is that really specified?</description>
		<content:encoded><![CDATA[<p>no proposal but an annotation:</p>
<p>is the execution order of these functions relevant? If yes I wouldn&#8217;t like your proposal Fabian, because non-expert programmers might no know in which order the if statement is processed. Since I don&#8217;t JAVA I have no clue. My C++ compiler would resolve this from left to right but is that really specified?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NiKo</title>
		<link>http://blog.hma-info.de/2008/03/20/if-cascade/comment-page-1/#comment-3941</link>
		<dc:creator>NiKo</dc:creator>
		<pubDate>Thu, 20 Mar 2008 10:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/2008/03/20/if-cascade/#comment-3941</guid>
		<description>OOPS, it&#039;s java here, I missed it :p

But I guess the patter should apply anyway :)</description>
		<content:encoded><![CDATA[<p>OOPS, it&#8217;s java here, I missed it :p</p>
<p>But I guess the patter should apply anyway <img src='http://blog.hma-info.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

