<?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: Which code layout do you like more?</title>
	<atom:link href="http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/</link>
	<description>Programming, gardening, economics, life in Cleveland Heights</description>
	<lastBuildDate>Sat, 04 Feb 2012 03:03:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: miles</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-3434</link>
		<dc:creator>miles</dc:creator>
		<pubDate>Mon, 27 Jul 2009 22:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-3434</guid>
		<description>return ( b ? h(g(a)) : g(a))&lt;br&gt;&lt;br&gt;... assuming ternary operators...</description>
		<content:encoded><![CDATA[<p>return ( b ? h(g(a)) : g(a))</p>
<p>&#8230; assuming ternary operators&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miles</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1927</link>
		<dc:creator>miles</dc:creator>
		<pubDate>Mon, 27 Jul 2009 18:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1927</guid>
		<description>return ( b ? h(g(a)) : g(a))&lt;br&gt;&lt;br&gt;... assuming ternary operators...</description>
		<content:encoded><![CDATA[<p>return ( b ? h(g(a)) : g(a))</p>
<p>&#8230; assuming ternary operators&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Corfman</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1795</link>
		<dc:creator>Brandon Corfman</dc:creator>
		<pubDate>Thu, 25 Jun 2009 15:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1795</guid>
		<description>Shouldn&#039;t the function name be &quot;price&quot; instead? Why introduce a variable just for  naming when the function name serves that purpose?</description>
		<content:encoded><![CDATA[<p>Shouldn&#39;t the function name be &#8220;price&#8221; instead? Why introduce a variable just for  naming when the function name serves that purpose?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Freestyle</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1794</link>
		<dc:creator>Freestyle</dc:creator>
		<pubDate>Thu, 25 Jun 2009 14:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1794</guid>
		<description>Second one would be great for me! I liked both of these btw!</description>
		<content:encoded><![CDATA[<p>Second one would be great for me! I liked both of these btw!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1774</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 20 Jun 2009 03:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1774</guid>
		<description>With multiple return points I find myself spelling out implicit else statement:&lt;br&gt;&lt;br&gt;def(a,b):&lt;br&gt;__if b:&lt;br&gt;____return h(g(a))&lt;br&gt;__else:&lt;br&gt;____return g(a)</description>
		<content:encoded><![CDATA[<p>With multiple return points I find myself spelling out implicit else statement:</p>
<p>def(a,b):<br />__if b:<br />____return h(g(a))<br />__else:<br />____return g(a)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seenxu</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1770</link>
		<dc:creator>seenxu</dc:creator>
		<pubDate>Fri, 19 Jun 2009 23:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1770</guid>
		<description>I&#039;d prefer the first one, easy to read, easy to understand.</description>
		<content:encoded><![CDATA[<p>I&#39;d prefer the first one, easy to read, easy to understand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rgz</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1762</link>
		<dc:creator>rgz</dc:creator>
		<pubDate>Fri, 19 Jun 2009 18:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1762</guid>
		<description>I on the other hand love multiple return statements in loops and --while using php-- switches. I actually find that situation a lot using switches.&lt;br&gt;&lt;br&gt;In some switches I don&#039;t use break at all since all my cases end with return. Some times however I have to do additional work before getting out of the function, then it&#039;s temp variable time again.</description>
		<content:encoded><![CDATA[<p>I on the other hand love multiple return statements in loops and &#8211;while using php&#8211; switches. I actually find that situation a lot using switches.</p>
<p>In some switches I don&#39;t use break at all since all my cases end with return. Some times however I have to do additional work before getting out of the function, then it&#39;s temp variable time again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Titus Brown</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1761</link>
		<dc:creator>Titus Brown</dc:creator>
		<pubDate>Fri, 19 Jun 2009 17:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1761</guid>
		<description>For me, it depends on the rest of the code in the function.  Multiple obvious return statements aren&#039;t &quot;bad&quot;:&lt;br&gt;&lt;br&gt;def f(...):&lt;br&gt;   if param is bad:&lt;br&gt;      return None&lt;br&gt;&lt;br&gt;  ... do stuff ...&lt;br&gt;  return answer&lt;br&gt;&lt;br&gt;but I don&#039;t like having returns sprinkled throughout the code, and especially not in loops, where it can complicate the logic of the execution flow.</description>
		<content:encoded><![CDATA[<p>For me, it depends on the rest of the code in the function.  Multiple obvious return statements aren&#39;t &#8220;bad&#8221;:</p>
<p>def f(&#8230;):<br />   if param is bad:<br />      return None</p>
<p>  &#8230; do stuff &#8230;<br />  return answer</p>
<p>but I don&#39;t like having returns sprinkled throughout the code, and especially not in loops, where it can complicate the logic of the execution flow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elzapp</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1760</link>
		<dc:creator>elzapp</dc:creator>
		<pubDate>Fri, 19 Jun 2009 12:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1760</guid>
		<description>the indentation disappeared. Using _ as space:&lt;br&gt;def(a,b):&lt;br&gt;__if b:&lt;br&gt;____return h(g(a))&lt;br&gt;__return g(a)</description>
		<content:encoded><![CDATA[<p>the indentation disappeared. Using _ as space:<br />def(a,b):<br />__if b:<br />____return h(g(a))<br />__return g(a)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elzapp</title>
		<link>http://blog.tplus1.com/index.php/2009/06/18/which-code-layout-do-you-like-more/comment-page-1/#comment-1759</link>
		<dc:creator>elzapp</dc:creator>
		<pubDate>Fri, 19 Jun 2009 12:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tplus1.com/?p=368#comment-1759</guid>
		<description>How about&lt;br&gt;def(a,b):&lt;br&gt;    if b:&lt;br&gt;        return h(g(a))&lt;br&gt;    return g(a)</description>
		<content:encoded><![CDATA[<p>How about<br />def(a,b):<br />    if b:<br />        return h(g(a))<br />    return g(a)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

