<?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 for Baltimore PHP</title>
	<atom:link href="http://www.baltimorephp.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.baltimorephp.org</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 01 Jun 2011 16:24:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Use Ternary Operators by zane</title>
		<link>http://www.baltimorephp.org/2011/02/use-ternary-operators/#comment-29</link>
		<dc:creator>zane</dc:creator>
		<pubDate>Wed, 01 Jun 2011 16:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://wp.baltimorephp.org.sandbox.e-moxie.com/?p=69#comment-29</guid>
		<description>Personally I use them when ever possible, like most tools of the trade it has its uses, but can be abused.</description>
		<content:encoded><![CDATA[<p>Personally I use them when ever possible, like most tools of the trade it has its uses, but can be abused.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Community Code Review moderated by Tim Crider by zane</title>
		<link>http://www.baltimorephp.org/2011/05/php-community-code-review-moderated-by-tim-crider/#comment-28</link>
		<dc:creator>zane</dc:creator>
		<pubDate>Wed, 01 Jun 2011 16:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.baltimorephp.org/?p=113#comment-28</guid>
		<description>The new location is great! WordPress Baltimore meets there as well, I&#039;ve been considering renting space there as well. 

Looking forward to this meetup</description>
		<content:encoded><![CDATA[<p>The new location is great! WordPress Baltimore meets there as well, I&#8217;ve been considering renting space there as well. </p>
<p>Looking forward to this meetup</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Lithium+MongoDB to launch private sale site Totsy.com by Quora</title>
		<link>http://www.baltimorephp.org/2010/11/using-lithiummongodb-to-launch-private-sale-site-totsy-com-with-mitch-pirtle/#comment-25</link>
		<dc:creator>Quora</dc:creator>
		<pubDate>Wed, 01 Jun 2011 05:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://wp.baltimorephp.org.sandbox.e-moxie.com/?p=60#comment-25</guid>
		<description>&lt;strong&gt;What are the most promising PHP 5.3 frameworks?...&lt;/strong&gt;

I don&#039;t, but there is an interesting case of study: http://www.totsy.com/ The last year they launch the site and made a presentation about it in 10gen (the people behind MongoDB): http://www.10gen.com/video/mongoboston2010/totsy Another ref: http://ww...</description>
		<content:encoded><![CDATA[<p><strong>What are the most promising PHP 5.3 frameworks?&#8230;</strong></p>
<p>I don&#8217;t, but there is an interesting case of study: <a href="http://www.totsy.com/" rel="nofollow">http://www.totsy.com/</a> The last year they launch the site and made a presentation about it in 10gen (the people behind MongoDB): <a href="http://www.10gen.com/video/mongoboston2010/totsy" rel="nofollow">http://www.10gen.com/video/mongoboston2010/totsy</a> Another ref: <a href="http://ww.." rel="nofollow">http://ww..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use Ternary Operators by Tonsil</title>
		<link>http://www.baltimorephp.org/2011/02/use-ternary-operators/#comment-6</link>
		<dc:creator>Tonsil</dc:creator>
		<pubDate>Thu, 19 May 2011 21:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://wp.baltimorephp.org.sandbox.e-moxie.com/?p=69#comment-6</guid>
		<description>The ternary operator is like a gun - if you don&#039;t know how it works, you shouldn&#039;t use it. The example you gave doesn&#039;t strike me as confusing in the least, but I do agree that it would be clearer with something like
[code]
if(!empty($host)) $host = htmlentities($host);
[/code]

That said, I do like to use the ternary for dealing with default values, e.g.:
[code]
$host = isset($row[&#039;host&#039;]) ? $row[&#039;host&#039;] : &#039;localhost&#039;;
[/code]
and I really like the ability to leave out the middle condition since 5.3, much like the &quot;or equal&quot; ruby operator.</description>
		<content:encoded><![CDATA[<p>The ternary operator is like a gun &#8211; if you don&#8217;t know how it works, you shouldn&#8217;t use it. The example you gave doesn&#8217;t strike me as confusing in the least, but I do agree that it would be clearer with something like</p>
<div class="cic_codes_div"><code><br />
if(!empty($host)) $host = htmlentities($host);<br />
</code></div>
<p>That said, I do like to use the ternary for dealing with default values, e.g.:</p>
<div class="cic_codes_div"><code><br />
$host = isset($row[&#039;host&#039;]) ? $row[&#039;host&#039;] : &#039;localhost&#039;;<br />
</code></div>
<p>and I really like the ability to leave out the middle condition since 5.3, much like the &#8220;or equal&#8221; ruby operator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use Ternary Operators by Owen Byrne</title>
		<link>http://www.baltimorephp.org/2011/02/use-ternary-operators/#comment-5</link>
		<dc:creator>Owen Byrne</dc:creator>
		<pubDate>Thu, 19 May 2011 20:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://wp.baltimorephp.org.sandbox.e-moxie.com/?p=69#comment-5</guid>
		<description>I&#039;m not sure why you wouldn&#039;t just do:
[code]
$host = htmlentities($host);
[/code]</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure why you wouldn&#8217;t just do:</p>
<div class="cic_codes_div"><code><br />
$host = htmlentities($host);<br />
</code></div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use Ternary Operators by Matt</title>
		<link>http://www.baltimorephp.org/2011/02/use-ternary-operators/#comment-4</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 19 May 2011 19:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://wp.baltimorephp.org.sandbox.e-moxie.com/?p=69#comment-4</guid>
		<description>You can now post code in comments by wrapping code in [ code ] [/ code ]  minus the spacing of course.


[code]
$foo = &quot;Code in Comment&quot;;
echo $foo;
[/code]

</description>
		<content:encoded><![CDATA[<p>You can now post code in comments by wrapping code in [ code ] [/ code ]  minus the spacing of course.</p>
<div class="cic_codes_div"><code><br />
$foo = &quot;Code in Comment&quot;;<br />
echo $foo;<br />
</code></div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use Ternary Operators by Travis Black</title>
		<link>http://www.baltimorephp.org/2011/02/use-ternary-operators/#comment-3</link>
		<dc:creator>Travis Black</dc:creator>
		<pubDate>Thu, 19 May 2011 19:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://wp.baltimorephp.org.sandbox.e-moxie.com/?p=69#comment-3</guid>
		<description>lol... your replies don&#039;t allow php tags... which makes it hard to discuss php code...</description>
		<content:encoded><![CDATA[<p>lol&#8230; your replies don&#8217;t allow php tags&#8230; which makes it hard to discuss php code&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use Ternary Operators by Travis Black</title>
		<link>http://www.baltimorephp.org/2011/02/use-ternary-operators/#comment-2</link>
		<dc:creator>Travis Black</dc:creator>
		<pubDate>Thu, 19 May 2011 19:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://wp.baltimorephp.org.sandbox.e-moxie.com/?p=69#comment-2</guid>
		<description>I think ternary is great in templates.

&lt;div id=&quot;post&quot; class=&quot;isFlagged) ? &#039;flagged&#039; : &#039;unflagged&#039;; ?&gt;&quot;&gt;
    getBody(); ?&gt;
</description>
		<content:encoded><![CDATA[<p>I think ternary is great in templates.</p>
<p>&lt;div id=&quot;post&quot; class=&quot;isFlagged) ? &#8216;flagged&#8217; : &#8216;unflagged&#8217;; ?&gt;&#8221;&gt;<br />
    getBody(); ?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

