<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Coderzilla</title>
	<atom:link href="http://coderzilla.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://coderzilla.com</link>
	<description>Everything Coding</description>
	<lastBuildDate>Tue, 13 Sep 2011 00:19:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Update</title>
		<link>http://coderzilla.com/update/</link>
		<comments>http://coderzilla.com/update/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 00:19:35 +0000</pubDate>
		<dc:creator>Preston Alvarado</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://coderzilla.com/?p=128</guid>
		<description><![CDATA[So I have been busy programming things and with real life. Sorry about not posting new tips &#038; tricks. However in my away time I had time to setup something cool. Compiled binaries using Visual Studio 2010. Below is the links to the libs / dlls Box2D 2.2.0 http://coderzilla.com/libraries/Box2D/binaries/2.2.0-MSVC10/ SFML 1.6 http://coderzilla.com/libraries/SFML-1/binaries/1.6-MSVC10/ Enjoy! Update: So [...]]]></description>
			<content:encoded><![CDATA[<p>So I have been busy programming things and with real life. Sorry about not posting new tips &#038; tricks. However in my away time I had time to setup something cool. Compiled binaries using Visual Studio 2010.</p>
<p>Below is the links to the libs / dlls</p>
<p>Box2D 2.2.0<br />
<a href="http://coderzilla.com/libraries/Box2D/binaries/2.2.0-MSVC10/">http://coderzilla.com/libraries/Box2D/binaries/2.2.0-MSVC10/</a></p>
<p>SFML 1.6<br />
<a href="http://coderzilla.com/libraries/Box2D/binaries/2.2.0-MSVC10/">http://coderzilla.com/libraries/SFML-1/binaries/1.6-MSVC10/</a></p>
<p>Enjoy!</p>
<p>Update: So I&#8217;ll be moving this onto its own page!</p>
]]></content:encoded>
			<wfw:commentRss>http://coderzilla.com/update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tip of the week #1</title>
		<link>http://coderzilla.com/tip-of-the-week-1/</link>
		<comments>http://coderzilla.com/tip-of-the-week-1/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 00:00:13 +0000</pubDate>
		<dc:creator>Preston Alvarado</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[operators]]></category>
		<category><![CDATA[ternary]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tips of the week]]></category>

		<guid isPermaLink="false">http://coderzilla.com/?p=56</guid>
		<description><![CDATA[Today is the first &#8220;Tip of the week&#8221;. A new mini series I&#8217;ll be publishing every week! So let&#8217;s get started. Today&#8217;s subject is over Ternary operations. These operations can improve your code and make it easier to read. However sometimes can make your code really complex. A Ternary operation is basically just a if [...]]]></description>
			<content:encoded><![CDATA[<p>Today is the first &#8220;Tip of the week&#8221;. A new mini series I&#8217;ll be publishing every week! So let&#8217;s get started.</p>
<p>Today&#8217;s subject is over Ternary operations. These operations can improve your code and make it easier to read. However sometimes can make your code really complex. A Ternary operation is basically just a if else statement that many languages support.</p>
<p>The general syntax usually looks similar to this.</p>
<pre class="brush: plain; title: ; notranslate">
(expression ? true expression : false expression)
</pre>
<p><span id="more-56"></span></p>
<p>So let&#8217;s start of with an example in C/C++.</p>
<pre class="brush: cpp; highlight: [8]; title: ; notranslate">
#include &lt;iostream&gt;

int main()
{
	int i = 0;
	while(i != 5)
	{
		std::cout &lt;&lt; i &lt;&lt; ((i &gt; 2) ? &quot; &gt; 2&quot; : &quot; &lt;= 2&quot;) &lt;&lt; std::endl;
		i++;
	}
}
</pre>
<p>Let&#8217;s break this down! If you never seen this, don&#8217;t freak out! It&#8217;s actually really simple.</p>
<pre class="brush: cpp; first-line: 8; title: ; notranslate">
((i &gt; 2) ? &quot; &gt; 2&quot; : &quot; &lt;= 2&quot;)
</pre>
<p>If the expression is true (i &gt; 2) then it will return &#8221; &gt; 2&#8243;, if it&#8217;s false it will return &#8221; A more simple of way of putting it would be the long form of code of that example.</p>
<pre class="brush: cpp; title: ; notranslate">
#include &lt;iostream&gt;

int main()
{
	while(i != 5)
	{
		std::cout &lt;&lt; i;
		if(i &gt; 2)
		{
			std::cout &lt;&lt; &quot; &gt; 2&quot; &lt;&lt; std::endl;
		}
		else
		{
			std::cout &lt;&lt; &quot; &lt;= 2&quot; &lt;&lt; std::endl;
		}
		i++;
	}
}
</pre>
<p>Now, I don&#8217;t know about you but I would rather write that using the ternary operator as its less lines and more compact. If you are interested in using this operation in another language just google it to see if your language supports it. Many languages support. The example above you can use in C, C++, C#, Objective-C, Actionscript, Javascript, Java, PHP. In those languages I must note you do not need the open bracket around the <em>expression</em>. I used them to make the code look cleaner and easier to read. Happy programming!</p>
]]></content:encoded>
			<wfw:commentRss>http://coderzilla.com/tip-of-the-week-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome Programmers</title>
		<link>http://coderzilla.com/welcome-programmer/</link>
		<comments>http://coderzilla.com/welcome-programmer/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 09:26:08 +0000</pubDate>
		<dc:creator>Preston Alvarado</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://coderzilla.com/?p=4</guid>
		<description><![CDATA[Welcome to CoderZilla. What is CoderZilla? Simple, its a blog all about programming in all languages. We want you to check back later because we are still cooking up some of those articles. What can you be expecting you may be asking yourself? Tutorials, Tips, Tricks, and reviews all related to programming. Until then we will [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to CoderZilla. What is CoderZilla? Simple, its a blog all about programming in all languages. We want you to check back later because we are still cooking up some of those articles. What can you be expecting you may be asking yourself? Tutorials, Tips, Tricks, and reviews all related to programming. Until then we will see you back here soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://coderzilla.com/welcome-programmer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

