<?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, else and nothing else</title>
	<atom:link href="http://www.turnleafdesign.com/if-else-and-nothing-else/feed" rel="self" type="application/rss+xml" />
	<link>http://www.turnleafdesign.com/if-else-and-nothing-else</link>
	<description>Ramblings of a junior developer</description>
	<lastBuildDate>Thu, 20 Jan 2011 09:21:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Eric T.</title>
		<link>http://www.turnleafdesign.com/if-else-and-nothing-else/comment-page-1#comment-64</link>
		<dc:creator>Eric T.</dc:creator>
		<pubDate>Tue, 06 Oct 2009 13:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=81#comment-64</guid>
		<description>Be minimalist when it will lead to better code design. For you new guys out there try not to make the code &quot;too cute&quot; with look what I learned today type of stuff. 

Having said that, I think that it is great that you are hungry for learning new things. Your code and career will certainly be benefit from it.</description>
		<content:encoded><![CDATA[<p>Be minimalist when it will lead to better code design. For you new guys out there try not to make the code &#8220;too cute&#8221; with look what I learned today type of stuff. </p>
<p>Having said that, I think that it is great that you are hungry for learning new things. Your code and career will certainly be benefit from it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://www.turnleafdesign.com/if-else-and-nothing-else/comment-page-1#comment-15</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 02 Oct 2009 09:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=81#comment-15</guid>
		<description>It&#039;s not alwas the best thing to have a short line of code. Software is always changing and other people will have to change your code.

if (a &gt; b) {

is more readable, because it&#039;s a lot closer to our natural language.

If a greater then b do that.

For

getBoolValue = a &gt; b;

you have to think about if it&#039;s a condition or not.
It&#039;s an implicit condition.

And for the sake of readability, I prefer using the explicit expression.

And I have another point about shortening.
You can shorten the if expression like this.

int boolValue = true;
if (a &lt; b) {
   boolValue = false;
}</description>
		<content:encoded><![CDATA[<p>It&#8217;s not alwas the best thing to have a short line of code. Software is always changing and other people will have to change your code.</p>
<p>if (a &gt; b) {</p>
<p>is more readable, because it&#8217;s a lot closer to our natural language.</p>
<p>If a greater then b do that.</p>
<p>For</p>
<p>getBoolValue = a &gt; b;</p>
<p>you have to think about if it&#8217;s a condition or not.<br />
It&#8217;s an implicit condition.</p>
<p>And for the sake of readability, I prefer using the explicit expression.</p>
<p>And I have another point about shortening.<br />
You can shorten the if expression like this.</p>
<p>int boolValue = true;<br />
if (a &lt; b) {<br />
   boolValue = false;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

