<?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"
	>
<channel>
	<title>Comments on: Coding For Readability</title>
	<atom:link href="http://www.red-sweater.com/blog/316/coding-for-readability/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/316/coding-for-readability</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<pubDate>Thu, 28 Aug 2008 20:37:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: macFanDave</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-81400</link>
		<dc:creator>macFanDave</dc:creator>
		<pubDate>Mon, 09 Apr 2007 12:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-81400</guid>
		<description>Daniel,

There are not very many people who are smarter than you ;-).  You probably mean "people who have studied international trade more thoroughly than you have."</description>
		<content:encoded><![CDATA[<p>Daniel,</p>
<p>There are not very many people who are smarter than you ;-).  You probably mean &#8220;people who have studied international trade more thoroughly than you have.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-80953</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Sun, 08 Apr 2007 16:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-80953</guid>
		<description>Thanks for clarifying your points. I agree that globalization is a tricky subject and has a lot of implications that should be dealt with by people smarter than myself.</description>
		<content:encoded><![CDATA[<p>Thanks for clarifying your points. I agree that globalization is a tricky subject and has a lot of implications that should be dealt with by people smarter than myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: macFanDave</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-80951</link>
		<dc:creator>macFanDave</dc:creator>
		<pubDate>Sun, 08 Apr 2007 16:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-80951</guid>
		<description>Daniel,

I apologize for the misunderstanding, but my "eff them" was directed at my greedy, treacherous corporate overlords, not at fellow developers overseas.

Frankly, when I get to the point where I can outsource myself, it will be time to go anyways.  The code base I work on is far from that point.  I work for a manufacturer that requires customization on a per-piece basis (our product sells for $20,00 to &#62; $100,000 a pop so customer demands for bells and whistles are justifiably honored.)  The problem is that product engineering is unable or unwilling to give us their methodology unequivocally.  It is unclear whether it is stupidity, laziness, or a turf battle that prevents them from letting us automate some of their daily tedium, but it provides us with endless opportunities to guess how they do their work and to respond to their fickle demands.  They are hardly a group that has defined its problem well enough to engage outside contractors (local or global).

For example, we had a New England firm bid on a project for about 7-10 times an average engineer's salary and wanted 15 months after receiving the complete spec.  Well, another guy and I did it in-house in 9 months, and through weekly meetings with engineering, the spec constantly changed.  The point is that our customer is so fickle, their efforts to engage outside contractors are doomed to failure, no matter where they are located.

Globalization where capital and goods can flow freely, but labor cannot is disasterous for all but the elite.  Engaging in international trade must be done soberly and not under the rubric of deceptive slogans like "free trade."</description>
		<content:encoded><![CDATA[<p>Daniel,</p>
<p>I apologize for the misunderstanding, but my &#8220;eff them&#8221; was directed at my greedy, treacherous corporate overlords, not at fellow developers overseas.</p>
<p>Frankly, when I get to the point where I can outsource myself, it will be time to go anyways.  The code base I work on is far from that point.  I work for a manufacturer that requires customization on a per-piece basis (our product sells for $20,00 to &gt; $100,000 a pop so customer demands for bells and whistles are justifiably honored.)  The problem is that product engineering is unable or unwilling to give us their methodology unequivocally.  It is unclear whether it is stupidity, laziness, or a turf battle that prevents them from letting us automate some of their daily tedium, but it provides us with endless opportunities to guess how they do their work and to respond to their fickle demands.  They are hardly a group that has defined its problem well enough to engage outside contractors (local or global).</p>
<p>For example, we had a New England firm bid on a project for about 7-10 times an average engineer&#8217;s salary and wanted 15 months after receiving the complete spec.  Well, another guy and I did it in-house in 9 months, and through weekly meetings with engineering, the spec constantly changed.  The point is that our customer is so fickle, their efforts to engage outside contractors are doomed to failure, no matter where they are located.</p>
<p>Globalization where capital and goods can flow freely, but labor cannot is disasterous for all but the elite.  Engaging in international trade must be done soberly and not under the rubric of deceptive slogans like &#8220;free trade.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-80595</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Sun, 08 Apr 2007 03:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-80595</guid>
		<description>macFanDave: I can appreciate your frustration, but I think the venom against developers from other countries is uncalled for. I hope you keep your job, but any further comments here along the lines of "Eff Them" will be deleted.

We should look at globalization of the world as a positive, not as a negative.</description>
		<content:encoded><![CDATA[<p>macFanDave: I can appreciate your frustration, but I think the venom against developers from other countries is uncalled for. I hope you keep your job, but any further comments here along the lines of &#8220;Eff Them&#8221; will be deleted.</p>
<p>We should look at globalization of the world as a positive, not as a negative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: macFanDave</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-80589</link>
		<dc:creator>macFanDave</dc:creator>
		<pubDate>Sun, 08 Apr 2007 03:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-80589</guid>
		<description>I've always thought the theory of readable, appropriately-commented code was compelling.

Recently, my boss said that our company has signed agreements with Tata and Infosys to outsource our work to India.  I'm glad that I have not really kept up with the theory of making my source readable.

So, from now until the time I get fired or quit, I'm going to sharply increase my use of goto's, replace my scrupulously #define-d constants with mysterious "magic numbers" and start using Latin for variable and function names.  F*cK them!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve always thought the theory of readable, appropriately-commented code was compelling.</p>
<p>Recently, my boss said that our company has signed agreements with Tata and Infosys to outsource our work to India.  I&#8217;m glad that I have not really kept up with the theory of making my source readable.</p>
<p>So, from now until the time I get fired or quit, I&#8217;m going to sharply increase my use of goto&#8217;s, replace my scrupulously #define-d constants with mysterious &#8220;magic numbers&#8221; and start using Latin for variable and function names.  F*cK them!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taybin</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-80014</link>
		<dc:creator>Taybin</dc:creator>
		<pubDate>Sat, 07 Apr 2007 01:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-80014</guid>
		<description>I've seen suggestions to always use Enums instead of bools for better readability.

Then you could do something like:
&lt;code&gt;HANDLE myHandle = CreateEvent(myAttrs, ManualReset, NoInitialState, "Ouch");&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen suggestions to always use Enums instead of bools for better readability.</p>
<p>Then you could do something like:<br />
<code>HANDLE myHandle = CreateEvent(myAttrs, ManualReset, NoInitialState, "Ouch");</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Jalkut</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-79902</link>
		<dc:creator>Mike Jalkut</dc:creator>
		<pubDate>Fri, 06 Apr 2007 19:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-79902</guid>
		<description>Code may not be read very often, but when it is, it takes an inordinant amount of developer time to thoroughly (re)assess all the implications of changing it. Falling short in this scrutiny is what leads to unknown undesired sideeffects which take even more time to track down . . . usually after the product ships.</description>
		<content:encoded><![CDATA[<p>Code may not be read very often, but when it is, it takes an inordinant amount of developer time to thoroughly (re)assess all the implications of changing it. Falling short in this scrutiny is what leads to unknown undesired sideeffects which take even more time to track down . . . usually after the product ships.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manton Reece</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-79901</link>
		<dc:creator>Manton Reece</dc:creator>
		<pubDate>Fri, 06 Apr 2007 19:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-79901</guid>
		<description>Another simple way to make C functions like your example more readable is to pass constants instead of simply true or false. If done correctly these carry some of the meaning of what you would see in Objective-C plus the boolean value itself.

But I agree with the general point of your post. It is generally not a good use of time to make sure every line of code is readable. Instead, refactor when you encounter a particularly messy part that you need to modify, and make sure that at least readable method names hide the most unreadable implementation guts.</description>
		<content:encoded><![CDATA[<p>Another simple way to make C functions like your example more readable is to pass constants instead of simply true or false. If done correctly these carry some of the meaning of what you would see in Objective-C plus the boolean value itself.</p>
<p>But I agree with the general point of your post. It is generally not a good use of time to make sure every line of code is readable. Instead, refactor when you encounter a particularly messy part that you need to modify, and make sure that at least readable method names hide the most unreadable implementation guts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Lee</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-79891</link>
		<dc:creator>Andy Lee</dc:creator>
		<pubDate>Fri, 06 Apr 2007 19:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-79891</guid>
		<description>Amen to Cocoa gratitude.  When I see a function name like EnableWindow(bool) whose job is not to enable a window, but to set the enabledness of a window, I get a bad feeling.</description>
		<content:encoded><![CDATA[<p>Amen to Cocoa gratitude.  When I see a function name like EnableWindow(bool) whose job is not to enable a window, but to set the enabledness of a window, I get a bad feeling.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karsten</title>
		<link>http://www.red-sweater.com/blog/316/coding-for-readability#comment-79889</link>
		<dc:creator>Karsten</dc:creator>
		<pubDate>Fri, 06 Apr 2007 18:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/316/coding-for-readability#comment-79889</guid>
		<description>"I often overcome this problem by /* inline-commenting */ the parameters."

well...this "c-part" of your cocoa-application may very well belong to the 90% of code you never touch again. and if you really happen to look at this code again you probably lookup the documentation for these functions again, or you may as well rewrite the code because you know better now and implement things in a simpler whay, that may even be easier to understand ;-)</description>
		<content:encoded><![CDATA[<p>&#8220;I often overcome this problem by /* inline-commenting */ the parameters.&#8221;</p>
<p>well&#8230;this &#8220;c-part&#8221; of your cocoa-application may very well belong to the 90% of code you never touch again. and if you really happen to look at this code again you probably lookup the documentation for these functions again, or you may as well rewrite the code because you know better now and implement things in a simpler whay, that may even be easier to understand ;-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.322 seconds -->
