<?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>Boolean algebra &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/boolean-algebra/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>PHP: Conditionals Coding Style</title>
		<link>/2010/05/26/php-conditionals-coding-style/</link>
		<comments>/2010/05/26/php-conditionals-coding-style/#respond</comments>
		<pubDate>Wed, 26 May 2010 07:51:46 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Boolean algebra]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Coding theory]]></category>
		<category><![CDATA[Computer programming]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Programming style]]></category>
		<category><![CDATA[Software engineering]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">/?p=1577</guid>
		<description><![CDATA[Just to continue with PHP coding style, let me suggest a conditional statement coding standard. Just don&#8217;t use large three operands conditions like that: condition ? if_true : if_false If it&#8217;s too long it will be difficult to read and maintain. Better is: (condition) ? (if_true) : (if_false);<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/05/19/php-associative-arrays-coding-style/" rel="bookmark" title="PHP Associative Arrays Coding Style">PHP Associative Arrays Coding Style </a></li>
<li><a href="/2010/12/03/javascript-objects-coding-style-reviewed/" rel="bookmark" title="JavaScript Objects Coding Style Reviewed">JavaScript Objects Coding Style Reviewed </a></li>
<li><a href="/2010/05/24/javascript-objects-coding-style/" rel="bookmark" title="JavaScript Objects Coding Style">JavaScript Objects Coding Style </a></li>
<li><a href="/2010/05/25/php-coding-style-large-if-statements/" rel="bookmark" title="PHP Coding Style: Large IF Statements">PHP Coding Style: Large IF Statements </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Just to continue with PHP coding style, let me suggest a conditional statement coding standard. Just don&#8217;t use large three operands conditions like that:</p>
<pre lang="php">
condition ? if_true : if_false
</pre>
<p>If it&#8217;s too long it will be difficult to read and maintain. Better is:</p>
<pre lang="php">
(condition)
	? (if_true)
	: (if_false);
</pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/05/19/php-associative-arrays-coding-style/" rel="bookmark" title="PHP Associative Arrays Coding Style">PHP Associative Arrays Coding Style </a></li>
<li><a href="/2010/12/03/javascript-objects-coding-style-reviewed/" rel="bookmark" title="JavaScript Objects Coding Style Reviewed">JavaScript Objects Coding Style Reviewed </a></li>
<li><a href="/2010/05/24/javascript-objects-coding-style/" rel="bookmark" title="JavaScript Objects Coding Style">JavaScript Objects Coding Style </a></li>
<li><a href="/2010/05/25/php-coding-style-large-if-statements/" rel="bookmark" title="PHP Coding Style: Large IF Statements">PHP Coding Style: Large IF Statements </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/05/26/php-conditionals-coding-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
