<?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: Calling The Kettle Black</title>
	<atom:link href="http://www.wolerized.com/opinion/calling-kettle-black/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wolerized.com/opinion/calling-kettle-black</link>
	<description>X-pect the Un-X-pected - Remi&#039;s spot on the web</description>
	<lastBuildDate>Fri, 06 Apr 2012 17:45:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Daniel Berstein</title>
		<link>http://www.wolerized.com/opinion/calling-kettle-black#comment-4</link>
		<dc:creator>Daniel Berstein</dc:creator>
		<pubDate>Tue, 18 Sep 2007 21:13:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-4</guid>
		<description>The *reason* is quite simple: to avoid hard to catch bugs.
Example:
&lt;code&gt;
  // Bug hard to catch (no syntax error)
  if ($name = &#039;daniel&#039;) { }
  // First run and you get a syntax error
  if (&#039;daniel&#039; = $name) { }
&lt;/code&gt;
This is the source of the practice of placing constants on the left side of your comparisons. Some of your examples don&#039;t take advantage of the described behaviour, but the idea is that one gets used to have *always* non-variables on the left. Consistency is a virtue.</description>
		<content:encoded><![CDATA[<p>The *reason* is quite simple: to avoid hard to catch bugs.</p>
<p>Example:<br />
<code><br />
  // Bug hard to catch (no syntax error)<br />
  if ($name = 'daniel') { }<br />
  // First run and you get a syntax error<br />
  if ('daniel' = $name) { }<br />
</code><br />
This is the source of the practice of placing constants on the left side of your comparisons. Some of your examples don&#8217;t take advantage of the described behaviour, but the idea is that one gets used to have *always* non-variables on the left. Consistency is a virtue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

