<?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: Line Length, Volume, and Density</title>
	<atom:link href="http://paul-m-jones.com/archives/276/feed" rel="self" type="application/rss+xml" />
	<link>http://paul-m-jones.com/archives/276?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=line-length-volume-and-density</link>
	<description>It&#039;s not enough to be smart; you have to actually know things.</description>
	<lastBuildDate>Wed, 16 May 2012 17:27:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: [Erledigt] Coding Guidelines - php.de</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-423731</link>
		<dc:creator>[Erledigt] Coding Guidelines - php.de</dc:creator>
		<pubDate>Mon, 30 Apr 2012 09:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-423731</guid>
		<description>[...] M. Jones has some thoughts about that limit.    Paul vergleicht das:   PHP-Code:    [...]</description>
		<content:encoded><![CDATA[<p>[...] M. Jones has some thoughts about that limit.    Paul vergleicht das:   PHP-Code:    [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Dermine</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-423261</link>
		<dc:creator>Nicolas Dermine</dc:creator>
		<pubDate>Thu, 22 Mar 2012 21:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-423261</guid>
		<description>I also found my code getting better and better by conforming to an 80 characters limit (less duplication, better named variables and methods).

Another advantage that I noticed lately is when looking at SVN diffs : having lines under 80 characters allows me to see the two revisions side by side without having to scroll to the right to see what changed.</description>
		<content:encoded><![CDATA[<p>I also found my code getting better and better by conforming to an 80 characters limit (less duplication, better named variables and methods).</p>
<p>Another advantage that I noticed lately is when looking at SVN diffs : having lines under 80 characters allows me to see the two revisions side by side without having to scroll to the right to see what changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: W3C Notes One Of My Posts As An &#8220;Informational Resource&#8221; &#124; Paul M. Jones</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-423153</link>
		<dc:creator>W3C Notes One Of My Posts As An &#8220;Informational Resource&#8221; &#124; Paul M. Jones</dc:creator>
		<pubDate>Mon, 19 Mar 2012 04:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-423153</guid>
		<description>[...] about Visual Presentation, under &#8220;Related Resources,&#8221; the authors note my article on Line Length, Volume, and Density. I&#8217;m surprised and pleased. :-)   This entry was posted in Programming. Bookmark the [...]</description>
		<content:encoded><![CDATA[<p>[...] about Visual Presentation, under &#8220;Related Resources,&#8221; the authors note my article on Line Length, Volume, and Density. I&#8217;m surprised and pleased. :-)   This entry was posted in Programming. Bookmark the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: On Preferring Spaces Over Tabs in PHP &#124; Paul M. Jones</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-423063</link>
		<dc:creator>On Preferring Spaces Over Tabs in PHP &#124; Paul M. Jones</dc:creator>
		<pubDate>Thu, 15 Mar 2012 16:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-423063</guid>
		<description>[...] Some will say this just shows that line length limits are dumb. I disagree. [...]</description>
		<content:encoded><![CDATA[<p>[...] Some will say this just shows that line length limits are dumb. I disagree. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moto Akumulator</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-422602</link>
		<dc:creator>Moto Akumulator</dc:creator>
		<pubDate>Wed, 11 Jan 2012 12:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-422602</guid>
		<description>Steve McConnell’s “Code Complete” is essential reading on this topic. I need 3 years to put his ideas in my programers practice but today when i looa at my code i am sure that anyone who comes after me will have easy job . Principles of coding from his book shuld be mandatory  for any programer !!</description>
		<content:encoded><![CDATA[<p>Steve McConnell’s “Code Complete” is essential reading on this topic. I need 3 years to put his ideas in my programers practice but today when i looa at my code i am sure that anyone who comes after me will have easy job . Principles of coding from his book shuld be mandatory  for any programer !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel O'Connor</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-421844</link>
		<dc:creator>Daniel O'Connor</dc:creator>
		<pubDate>Sat, 17 Dec 2011 11:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-421844</guid>
		<description>I think one of the mistakes we&#039;ve made is expressing this as &quot;75-85&quot; characters. You are dead right, it&#039;s about word groupings.

We all saw that &quot;Cambridge University&quot; jumbled words paragraph that got spammed around the internet.
&quot;I cnduo&#039;t bvleiee taht I culod aulaclty uesdtannrd waht I was rdnaieg&quot;

If nothing else it really highlights that we can work on word shape alone.

I&#039;d love to try and express this differently, as &quot;avoid lines longer than x words&quot; or &quot;Avoid having more than X words over Y characters long&quot;. Or at the very least; having trim()&#039;d the preceeding whitespace avoid having a line &lt; 85 characters.</description>
		<content:encoded><![CDATA[<p>I think one of the mistakes we&#8217;ve made is expressing this as &#8220;75-85&#8243; characters. You are dead right, it&#8217;s about word groupings.</p>
<p>We all saw that &#8220;Cambridge University&#8221; jumbled words paragraph that got spammed around the internet.<br />
&#8220;I cnduo&#8217;t bvleiee taht I culod aulaclty uesdtannrd waht I was rdnaieg&#8221;</p>
<p>If nothing else it really highlights that we can work on word shape alone.</p>
<p>I&#8217;d love to try and express this differently, as &#8220;avoid lines longer than x words&#8221; or &#8220;Avoid having more than X words over Y characters long&#8221;. Or at the very least; having trim()&#8217;d the preceeding whitespace avoid having a line &lt; 85 characters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pmjones</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-421483</link>
		<dc:creator>pmjones</dc:creator>
		<pubDate>Wed, 24 Aug 2011 03:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-421483</guid>
		<description>@Oliver +1</description>
		<content:encoded><![CDATA[<p>@Oliver +1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-421479</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Tue, 23 Aug 2011 23:57:49 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-421479</guid>
		<description>@Felds
try this:
&lt;code&gt;
$aLongAndDescriptiveObjectName
    -&gt;anotherLongAndDescriptiveName($inputParameter);

It looks strange but you get used to it. Most of my constructors look like this:
&lt;/code&gt;
$this
    -&gt;setFoo($foo)
    -&gt;setBar($bar)
    -&gt;setBaz($baz);

And if your object model is good you hardly need really long names.
&lt;code&gt;
$h = $fooBarBazGirGumpWhatever-&gt;getHandles(); 
    $h-&gt;barzoinkadings-&gt;close();
    $h -&gt;wallawallahoi-&gt;close();
    $h-&gt;redoplasma-&gt;close();
&lt;/code&gt;
is more readable then
&lt;code&gt;
$foo-&gt;getBarzoinkadingsHandle()-&gt;closeHandle();
$foo-&gt;getWallawallahoiHandle()-&gt;closeHandle();
$foo-&gt;getBarzoinkadingsHandle()-&gt;closeHandle();
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@Felds<br />
try this:<br />
<code><br />
$aLongAndDescriptiveObjectName<br />
    -&gt;anotherLongAndDescriptiveName($inputParameter);</p>
<p>It looks strange but you get used to it. Most of my constructors look like this:<br />
</code><br />
$this<br />
    -&gt;setFoo($foo)<br />
    -&gt;setBar($bar)<br />
    -&gt;setBaz($baz);</p>
<p>And if your object model is good you hardly need really long names.<br />
<code><br />
$h = $fooBarBazGirGumpWhatever-&gt;getHandles();<br />
    $h-&gt;barzoinkadings-&gt;close();<br />
    $h -&gt;wallawallahoi-&gt;close();<br />
    $h-&gt;redoplasma-&gt;close();<br />
</code><br />
is more readable then<br />
<code><br />
$foo-&gt;getBarzoinkadingsHandle()-&gt;closeHandle();<br />
$foo-&gt;getWallawallahoiHandle()-&gt;closeHandle();<br />
$foo-&gt;getBarzoinkadingsHandle()-&gt;closeHandle();<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felds</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-420673</link>
		<dc:creator>Felds</dc:creator>
		<pubDate>Wed, 25 May 2011 22:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-420673</guid>
		<description>I think that
&lt;code&gt;
$aLongAndDescriptiveObjectName-&gt;anotherLongAndDescriptiveName($inputParameter); // 80 chars
&lt;/code&gt;
… is way more readable than
&lt;code&gt;
$a-&gt;b($c); // 11 chars
&lt;/code&gt;

I&#039;ve seen this happening a few times.
Limiting the line lengths sometimes brings more problems than solutions.</description>
		<content:encoded><![CDATA[<p>I think that<br />
<code><br />
$aLongAndDescriptiveObjectName-&gt;anotherLongAndDescriptiveName($inputParameter); // 80 chars<br />
</code><br />
… is way more readable than<br />
<code><br />
$a-&gt;b($c); // 11 chars<br />
</code></p>
<p>I&#8217;ve seen this happening a few times.<br />
Limiting the line lengths sometimes brings more problems than solutions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pmjones</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-420667</link>
		<dc:creator>pmjones</dc:creator>
		<pubDate>Mon, 23 May 2011 14:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-420667</guid>
		<description>Hi Paula -- I count that as high praise given your bio.  Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Paula &#8212; I count that as high praise given your bio.  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

