<?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: How To Read&#160;Code</title>
	<atom:link href="http://omergertel.com/2010/07/04/how-to-read-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://omergertel.com/2010/07/04/how-to-read-code/</link>
	<description>The world, right back at you</description>
	<lastBuildDate>Wed, 11 Jan 2012 16:37:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
		<item>
		<title>By: nurnur</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-2699</link>
		<dc:creator>nurnur</dc:creator>
		<pubDate>Tue, 16 Aug 2011 15:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-2699</guid>
		<description>Grrrreat article!! Thank you. I am implementing your tips right now. The book you recommended is also very good, I keep getting back to it for coding principles.</description>
		<content:encoded><![CDATA[<p>Grrrreat article!! Thank you. I am implementing your tips right now. The book you recommended is also very good, I keep getting back to it for coding principles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: technikhil</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-544</link>
		<dc:creator>technikhil</dc:creator>
		<pubDate>Fri, 09 Jul 2010 15:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-544</guid>
		<description>There is one aspect of code reading that one must consider. In the real world you don&#039;t generally have the luxury of reading self contained code snippets. Sometimes you get a large bunch of inter-connected code or an conditional statement that runs several pages or even a large class hierarchy. 
In such cases the more appropriate description of the activity you are doing become &quot;code comprehension&quot; - I write about this in more detail in my post - check it out - http://technikhil.wordpress.com/2010/07/06/how-to-read-code-a-primer/</description>
		<content:encoded><![CDATA[<p>There is one aspect of code reading that one must consider. In the real world you don&#8217;t generally have the luxury of reading self contained code snippets. Sometimes you get a large bunch of inter-connected code or an conditional statement that runs several pages or even a large class hierarchy.<br />
In such cases the more appropriate description of the activity you are doing become &#8220;code comprehension&#8221; &#8211; I write about this in more detail in my post &#8211; check it out &#8211; <a href="http://technikhil.wordpress.com/2010/07/06/how-to-read-code-a-primer/" rel="nofollow">http://technikhil.wordpress.com/2010/07/06/how-to-read-code-a-primer/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omer Gertel</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-541</link>
		<dc:creator>Omer Gertel</dc:creator>
		<pubDate>Thu, 08 Jul 2010 04:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-541</guid>
		<description>Actually, modern practice is not to use comments, but make the code self descriptive. This has a few good reasons:
A) In modern languages code is much more readable. Think of python, ruby, Java and C#. Object oriented, high level languages are easier to read.
B) Comments are usually not updated when code changes, which makes them worse than waste. They actually hurt understanding. Comments should really last resort.
Contrary to previous comments, about a function being called only once, it is actually a great way to make the code readable. For example, if you have an if statement - you can create three functions to describe the if statement, and then you don&#039;t need a comment at all:

&lt;blockquote&gt;if (OrangeIsRipe(color, size)) {
     MoveToBoxing();
} else {
     ThrowAway();
}&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Actually, modern practice is not to use comments, but make the code self descriptive. This has a few good reasons:<br />
A) In modern languages code is much more readable. Think of python, ruby, Java and C#. Object oriented, high level languages are easier to read.<br />
B) Comments are usually not updated when code changes, which makes them worse than waste. They actually hurt understanding. Comments should really last resort.<br />
Contrary to previous comments, about a function being called only once, it is actually a great way to make the code readable. For example, if you have an if statement &#8211; you can create three functions to describe the if statement, and then you don&#8217;t need a comment at all:</p>
<blockquote><p>if (OrangeIsRipe(color, size)) {<br />
     MoveToBoxing();<br />
} else {<br />
     ThrowAway();<br />
}</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: gary knott</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-540</link>
		<dc:creator>gary knott</dc:creator>
		<pubDate>Wed, 07 Jul 2010 21:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-540</guid>
		<description>Why are we reading code?  Isn&#039;t the purpose of comments
to help us avoid reading too much code?

-- See www.civilized.com/programming.html</description>
		<content:encoded><![CDATA[<p>Why are we reading code?  Isn&#8217;t the purpose of comments<br />
to help us avoid reading too much code?</p>
<p>&#8211; See <a href="http://www.civilized.com/programming.html" rel="nofollow">http://www.civilized.com/programming.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pl4n3</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-536</link>
		<dc:creator>Pl4n3</dc:creator>
		<pubDate>Tue, 06 Jul 2010 09:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-536</guid>
		<description>Great read! Though, splitting functions, not generally makes code readable to me. If new funcs after a split are called only once, i would keep it as code-block in the calling function. Otherwise stuff is too much spread and has misleadings semantics (a function is meant to be generally usable and to be called more than once).</description>
		<content:encoded><![CDATA[<p>Great read! Though, splitting functions, not generally makes code readable to me. If new funcs after a split are called only once, i would keep it as code-block in the calling function. Otherwise stuff is too much spread and has misleadings semantics (a function is meant to be generally usable and to be called more than once).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralph</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-534</link>
		<dc:creator>Ralph</dc:creator>
		<pubDate>Mon, 05 Jul 2010 14:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-534</guid>
		<description>The sad part is the code itself.  

Input is not limited to positive numbers - entering a negative number will give meaningless results. 
Todo: limit input to positive numbers, use unsigned int variables.

If a rather large max value is use, the resulting sum will overflow - again giving meaningless results.
Todo: limit input to largest number that will sum to maximum int value.

If your loop is iterating through every value, use a for loop.  If not, then use a while loop.  The while loop here adds extra code that is not clarifying what the code is doing.

Doesn&#039;t matter where your eyes are going if you can&#039;t fix these things!;-)</description>
		<content:encoded><![CDATA[<p>The sad part is the code itself.  </p>
<p>Input is not limited to positive numbers &#8211; entering a negative number will give meaningless results.<br />
Todo: limit input to positive numbers, use unsigned int variables.</p>
<p>If a rather large max value is use, the resulting sum will overflow &#8211; again giving meaningless results.<br />
Todo: limit input to largest number that will sum to maximum int value.</p>
<p>If your loop is iterating through every value, use a for loop.  If not, then use a while loop.  The while loop here adds extra code that is not clarifying what the code is doing.</p>
<p>Doesn&#8217;t matter where your eyes are going if you can&#8217;t fix these things!;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew J. Leer</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-533</link>
		<dc:creator>Andrew J. Leer</dc:creator>
		<pubDate>Mon, 05 Jul 2010 13:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-533</guid>
		<description>I used to go to Vision Therapy (which I later found out the problem had more to do with my TMJ than it did my eyes), and they used a vision tracking system to watch how my eyes moved when I read something.  The apparatus looked like a circuit board that fit around my eyes, it wasn&#039;t bulky at all.

  I was really surprised when I looked at the results of how my eyes were scanning the page, I don&#039;t think that I was even aware of the course they were taking.</description>
		<content:encoded><![CDATA[<p>I used to go to Vision Therapy (which I later found out the problem had more to do with my TMJ than it did my eyes), and they used a vision tracking system to watch how my eyes moved when I read something.  The apparatus looked like a circuit board that fit around my eyes, it wasn&#8217;t bulky at all.</p>
<p>  I was really surprised when I looked at the results of how my eyes were scanning the page, I don&#8217;t think that I was even aware of the course they were taking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-531</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Mon, 05 Jul 2010 13:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-531</guid>
		<description>Thanks for the good post.  You have furthered our profession!</description>
		<content:encoded><![CDATA[<p>Thanks for the good post.  You have furthered our profession!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omer Gertel</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-529</link>
		<dc:creator>Omer Gertel</dc:creator>
		<pubDate>Mon, 05 Jul 2010 10:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-529</guid>
		<description>@tdwright - Interesting point, but it still means the overall complexity of doing these tests is quite high. 
I wonder if a large bunch of test subjects combined with some data-mining algorithms could identify the main patterns. Also, heat maps are simple first-approximation of total focus (some display combining time and heat-map, perhaps?).</description>
		<content:encoded><![CDATA[<p>@tdwright &#8211; Interesting point, but it still means the overall complexity of doing these tests is quite high.<br />
I wonder if a large bunch of test subjects combined with some data-mining algorithms could identify the main patterns. Also, heat maps are simple first-approximation of total focus (some display combining time and heat-map, perhaps?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tdwright</title>
		<link>http://omergertel.com/2010/07/04/how-to-read-code/comment-page-1/#comment-528</link>
		<dc:creator>tdwright</dc:creator>
		<pubDate>Mon, 05 Jul 2010 09:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://omergertel.com/?p=490#comment-528</guid>
		<description>As someone who regularly works with eye-tracking technology, I&#039;d have to agree with some of the previous commenters: the technology isn&#039;t that complicated. Most university psychology/neuroscience departments will have a rig.

Moreover, with stimuli this messy, you couldn&#039;t automate the quantification.  Instead, you&#039;d have to watch the recordings and categorise different types of saccade. (Preferably, you&#039;d have more than one person do this.) Typically (in academic settings at least), eye-tracking experiments use much simpler stimuli. I suspect this is why they analysed so few people.</description>
		<content:encoded><![CDATA[<p>As someone who regularly works with eye-tracking technology, I&#8217;d have to agree with some of the previous commenters: the technology isn&#8217;t that complicated. Most university psychology/neuroscience departments will have a rig.</p>
<p>Moreover, with stimuli this messy, you couldn&#8217;t automate the quantification.  Instead, you&#8217;d have to watch the recordings and categorise different types of saccade. (Preferably, you&#8217;d have more than one person do this.) Typically (in academic settings at least), eye-tracking experiments use much simpler stimuli. I suspect this is why they analysed so few people.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

