<?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>Radamanthus Batnag &#187; Objective-C</title>
	<atom:link href="http://rad.batnag.org/tag/objective-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://rad.batnag.org</link>
	<description>Random thoughts on web and indie game development.</description>
	<lastBuildDate>Sun, 31 Jul 2011 09:22:25 +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>(CONSTANT == var) vs. (var == CONSTANT)</title>
		<link>http://rad.batnag.org/2010/02/constant-var-vs-var-constant/</link>
		<comments>http://rad.batnag.org/2010/02/constant-var-vs-var-constant/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 18:11:18 +0000</pubDate>
		<dc:creator>rad</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://rad.batnag.org/?p=67</guid>
		<description><![CDATA[I&#8217;ve been programming for quite some time now, but until now I never understood why some programmers prefer CONSTANT == var over var == CONSTANT It&#8217;s to avoid a common C coding mistake of using = instead of ==. If you use the former form, and you inadvertently use = instead of ==, the compiler [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been programming for quite some time now, but until now I never understood why some programmers prefer<br />
<code>CONSTANT == var</code> over <code>var == CONSTANT</code></p>
<p>It&#8217;s to avoid a common C coding mistake of using = instead of ==. If you use the former form, and you inadvertently use = instead of ==, the compiler will catch your mistake because you&#8217;d be trying to assign a value to a constant.</p>
<p>I never really needed this convention because I have always been careful with my ==&#8217;s. One of the earliest C lessons I&#8217;ve learned. Still, it&#8217;s helpful to understand why some veterans prefer one form over the other.</p>
]]></content:encoded>
			<wfw:commentRss>http://rad.batnag.org/2010/02/constant-var-vs-var-constant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

