<?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: Short #1 Don&#8217;t stick to &#8216;no negations in conditions&#8217; rule</title>
	<atom:link href="http://gamesarchitecture.com/short-1-dont-stick-to-no-negations-in-conditions-rule/feed/" rel="self" type="application/rss+xml" />
	<link>http://gamesarchitecture.com/short-1-dont-stick-to-no-negations-in-conditions-rule/</link>
	<description>For indie developers who already know that making games is not easy</description>
	<lastBuildDate>Thu, 28 Mar 2019 10:43:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.16</generator>
	<item>
		<title>By: Bartosz</title>
		<link>http://gamesarchitecture.com/short-1-dont-stick-to-no-negations-in-conditions-rule/#comment-28</link>
		<dc:creator><![CDATA[Bartosz]]></dc:creator>
		<pubDate>Tue, 12 Sep 2017 18:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://gamesarchitecture.com/?p=422#comment-28</guid>
		<description><![CDATA[Agree, the above example could be rewritten to use IsAlive() function (or property), it sounds better in that case. Pretty common habit though is to have &#039;HasErrors&#039; flag in SDKs. It sounds better than &#039;IsFreeFromBugs&#039; and often we don&#039;t have a choice. In that case we should check &lt;code&gt;if (!request.HasErrors)&lt;/code&gt; or &lt;code&gt;if (request.HasErrors == false)&lt;/code&gt; as you suggested. Both ways are fine in my opinion if they are standardized for the whole project.]]></description>
		<content:encoded><![CDATA[<p>Agree, the above example could be rewritten to use IsAlive() function (or property), it sounds better in that case. Pretty common habit though is to have &#8216;HasErrors&#8217; flag in SDKs. It sounds better than &#8216;IsFreeFromBugs&#8217; and often we don&#8217;t have a choice. In that case we should check <code>if (!request.HasErrors)</code> or <code>if (request.HasErrors == false)</code> as you suggested. Both ways are fine in my opinion if they are standardized for the whole project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yanick Bourbeau</title>
		<link>http://gamesarchitecture.com/short-1-dont-stick-to-no-negations-in-conditions-rule/#comment-27</link>
		<dc:creator><![CDATA[Yanick Bourbeau]]></dc:creator>
		<pubDate>Tue, 12 Sep 2017 16:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://gamesarchitecture.com/?p=422#comment-27</guid>
		<description><![CDATA[Common dude,  just wrote a IsAlive() function :) The problem with negation in the first IF is that coders often misses the &quot;!&quot;. If you really like to do still use this approach, at least wrote == false in the end. the false keyword get highlighted by most of the IDEs.]]></description>
		<content:encoded><![CDATA[<p>Common dude,  just wrote a IsAlive() function 🙂 The problem with negation in the first IF is that coders often misses the &#8220;!&#8221;. If you really like to do still use this approach, at least wrote == false in the end. the false keyword get highlighted by most of the IDEs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
