<?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, 08 Feb 2012 21:50:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<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>
	<item>
		<title>By: Paula Parisi</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-420664</link>
		<dc:creator>Paula Parisi</dc:creator>
		<pubDate>Sun, 22 May 2011 21:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-420664</guid>
		<description>Paul,

This is an amazing piece of writing, in terms of its functionality and with high points for literary style!  As a traditional &quot;writer&quot; by profession, who is just learning php, this type of well-reasoned and grammatically-inclined approach is exactly what I was craving (and having a very hard time finding. I wound up following an electronic breadcrumb trail to your site starting with a link in the book &quot;SAMS Teach Yourself PHP in 10 Minutes,&quot; that led to pear.php.net). I will be devouring every word on your site!

-Paula Parisi</description>
		<content:encoded><![CDATA[<p>Paul,</p>
<p>This is an amazing piece of writing, in terms of its functionality and with high points for literary style!  As a traditional &#8220;writer&#8221; by profession, who is just learning php, this type of well-reasoned and grammatically-inclined approach is exactly what I was craving (and having a very hard time finding. I wound up following an electronic breadcrumb trail to your site starting with a link in the book &#8220;SAMS Teach Yourself PHP in 10 Minutes,&#8221; that led to pear.php.net). I will be devouring every word on your site!</p>
<p>-Paula Parisi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul M. Jones &#187; Blog Archive &#187; Regarding Underscores</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-418271</link>
		<dc:creator>Paul M. Jones &#187; Blog Archive &#187; Regarding Underscores</dc:creator>
		<pubDate>Tue, 19 Oct 2010 13:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-418271</guid>
		<description>[...] programming, this convention is not for the program, it is for for the programmer. For example, limiting your line length to about 80 characters is a good idea, not for reasons of &#8220;tradition&#8221;, but because of cognitive limitations of [...]</description>
		<content:encoded><![CDATA[<p>[...] programming, this convention is not for the program, it is for for the programmer. For example, limiting your line length to about 80 characters is a good idea, not for reasons of &#8220;tradition&#8221;, but because of cognitive limitations of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP PEAR ??????? &#124; { yeah : ??? }</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-417712</link>
		<dc:creator>PHP PEAR ??????? &#124; { yeah : ??? }</dc:creator>
		<pubDate>Tue, 07 Sep 2010 05:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-417712</guid>
		<description>[...] to keep lines at approximately 75-85 characters long for better code readability. Paul M. Jones has some thoughts about that limit.???????? [...]</description>
		<content:encoded><![CDATA[<p>[...] to keep lines at approximately 75-85 characters long for better code readability. Paul M. Jones has some thoughts about that limit.???????? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John S.</title>
		<link>http://paul-m-jones.com/archives/276/comment-page-1#comment-417376</link>
		<dc:creator>John S.</dc:creator>
		<pubDate>Thu, 05 Aug 2010 20:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://paul-m-jones.com/?p=276#comment-417376</guid>
		<description>Another thought occurred to me: the cognitive limit probably only applies to occupied space, not white space.

In other words, a deeply indented line that contains 65 spaces and 18 alphanumeric characters would be perceived by a human as 18 characters, but by a computer as 83 characters. Perhaps code formatting utilities should ignore white space?</description>
		<content:encoded><![CDATA[<p>Another thought occurred to me: the cognitive limit probably only applies to occupied space, not white space.</p>
<p>In other words, a deeply indented line that contains 65 spaces and 18 alphanumeric characters would be perceived by a human as 18 characters, but by a computer as 83 characters. Perhaps code formatting utilities should ignore white space?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

