<?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: Software Developers who need to be kicked in the balls</title>
	<atom:link href="http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls</link>
	<description>Everything I used to bore people on newsgroups and mailing lists with, now in one inconvenient place.</description>
	<pubDate>Sat, 17 May 2008 20:01:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Kris Johnson</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81383</link>
		<dc:creator>Kris Johnson</dc:creator>
		<pubDate>Thu, 13 Mar 2008 13:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81383</guid>
		<description>To clarify, when I say "I see it", I mean a plain-old do...while (without preceding if), used in the appropriate way (do something at least once).

BTW, I completely agree about the folks who do "if (someBoolean == true) ...".  AAAARRRGGGHHH!!!!</description>
		<content:encoded><![CDATA[<p>To clarify, when I say &#8220;I see it&#8221;, I mean a plain-old do&#8230;while (without preceding if), used in the appropriate way (do something at least once).</p>
<p>BTW, I completely agree about the folks who do &#8220;if (someBoolean == true) &#8230;&#8221;.  AAAARRRGGGHHH!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Johnson</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81300</link>
		<dc:creator>Kris Johnson</dc:creator>
		<pubDate>Thu, 13 Mar 2008 01:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81300</guid>
		<description>I'd agree that putting a conditional before "do .. while" is pretty inane.  But, like another commenter, I see it fairly often in the kind of code I peruse, much of which is very low-level device-driver kinds of stuff.</description>
		<content:encoded><![CDATA[<p>I&#8217;d agree that putting a conditional before &#8220;do .. while&#8221; is pretty inane.  But, like another commenter, I see it fairly often in the kind of code I peruse, much of which is very low-level device-driver kinds of stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Tomblin</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81295</link>
		<dc:creator>Paul Tomblin</dc:creator>
		<pubDate>Thu, 13 Mar 2008 00:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81295</guid>
		<description>I'm not 100% down on do/while, although like I say they're relatively rare in the sort of code I do.  Yesterday, I was redoing somebody else's code and I replaced at least 10 and possibly 15 "do/while" loops that had either a conditional at the front or a repeated chunk of code with much clearer "while" loops.  Several of them turned into "for (FooClass fc : fooClassCollection) { ... }" loops, and the others were mostly "while (resultSet.hasNext()) { ... }" loops.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not 100% down on do/while, although like I say they&#8217;re relatively rare in the sort of code I do.  Yesterday, I was redoing somebody else&#8217;s code and I replaced at least 10 and possibly 15 &#8220;do/while&#8221; loops that had either a conditional at the front or a repeated chunk of code with much clearer &#8220;while&#8221; loops.  Several of them turned into &#8220;for (FooClass fc : fooClassCollection) { &#8230; }&#8221; loops, and the others were mostly &#8220;while (resultSet.hasNext()) { &#8230; }&#8221; loops.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bk</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81294</link>
		<dc:creator>bk</dc:creator>
		<pubDate>Wed, 12 Mar 2008 23:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81294</guid>
		<description>I could be wrong here, but I thought evaluating the conditional before executing the 'while' is the way to do it.

Paul, you're not explicitly condemning do/while, are you?

In Perl I'll use
while (conditon) {
 *do something*
}

but putting the *do something* first seems arse ways about for multiple reasons.

	

JAFPH</description>
		<content:encoded><![CDATA[<p>I could be wrong here, but I thought evaluating the conditional before executing the &#8216;while&#8217; is the way to do it.</p>
<p>Paul, you&#8217;re not explicitly condemning do/while, are you?</p>
<p>In Perl I&#8217;ll use<br />
while (conditon) {<br />
 *do something*<br />
}</p>
<p>but putting the *do something* first seems arse ways about for multiple reasons.</p>
<p>JAFPH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonesie</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81218</link>
		<dc:creator>jonesie</dc:creator>
		<pubDate>Wed, 12 Mar 2008 17:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81218</guid>
		<description>I come to you as a lay person with less than no understanding of what you're talking about. And yet...

Can I give Bill Gates a kick for Word?  

Yes, yes. Easy target.  Yes, yes world philanthropy.

Blah blah blah.

Fucking facist defaults.  Word is a writing program developed without any understanding of writers.</description>
		<content:encoded><![CDATA[<p>I come to you as a lay person with less than no understanding of what you&#8217;re talking about. And yet&#8230;</p>
<p>Can I give Bill Gates a kick for Word?  </p>
<p>Yes, yes. Easy target.  Yes, yes world philanthropy.</p>
<p>Blah blah blah.</p>
<p>Fucking facist defaults.  Word is a writing program developed without any understanding of writers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81107</link>
		<dc:creator>Gordon</dc:creator>
		<pubDate>Wed, 12 Mar 2008 04:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81107</guid>
		<description>I can't see anything wrong with the "do { ... } while(cond)" construct, either.  There are valid uses of it, such as when you need to execute the chunk of code at least once.  If you're using another means of getting achieving the same behaviour you're probably making it too complicated.

Of course, I suppose you could get the same effect by sticking a label at the top of the chunk of code and an if with a goto at the bottom.  (But those people *should* be given a swift kick.)</description>
		<content:encoded><![CDATA[<p>I can&#8217;t see anything wrong with the &#8220;do { &#8230; } while(cond)&#8221; construct, either.  There are valid uses of it, such as when you need to execute the chunk of code at least once.  If you&#8217;re using another means of getting achieving the same behaviour you&#8217;re probably making it too complicated.</p>
<p>Of course, I suppose you could get the same effect by sticking a label at the top of the chunk of code and an if with a goto at the bottom.  (But those people *should* be given a swift kick.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Parsons</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81103</link>
		<dc:creator>David Parsons</dc:creator>
		<pubDate>Wed, 12 Mar 2008 03:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81103</guid>
		<description>"do { … } while(cond); is something I’ve almost never seen in 20+ years of C, C++, and Java."

Um, I'm just sitting here with my jaw dropping open. Application programming must be a wonderful and exotic land, because I see do/while all over the place in systems code.   (And in places where I can't see it being replaced except by either duplicating big chunks of code or putting a goto.)</description>
		<content:encoded><![CDATA[<p>&#8220;do { … } while(cond); is something I’ve almost never seen in 20+ years of C, C++, and Java.&#8221;</p>
<p>Um, I&#8217;m just sitting here with my jaw dropping open. Application programming must be a wonderful and exotic land, because I see do/while all over the place in systems code.   (And in places where I can&#8217;t see it being replaced except by either duplicating big chunks of code or putting a goto.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Tomblin</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81100</link>
		<dc:creator>Paul Tomblin</dc:creator>
		<pubDate>Wed, 12 Mar 2008 02:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81100</guid>
		<description>do { ... } while(cond); is something I've almost never seen in 20+ years of C, C++, and Java.  The very rarity of it means that it is a surprise when you see it - which means that you should only use it where you really need to run the loop once before testing the conditional.  Putting the same damn condition before it, as in "if (cond) { do { ... } while(cond);}", which I've encountered about 10 times in the last two days while re-writing some code from a former co-worker, is just fucking stupid.  What this guy has done is taken a very common and instantly recognizable and understandable paradigm, the "while" loop, and turned it into something nowhere near as comprehensible.</description>
		<content:encoded><![CDATA[<p>do { &#8230; } while(cond); is something I&#8217;ve almost never seen in 20+ years of C, C++, and Java.  The very rarity of it means that it is a surprise when you see it - which means that you should only use it where you really need to run the loop once before testing the conditional.  Putting the same damn condition before it, as in &#8220;if (cond) { do { &#8230; } while(cond);}&#8221;, which I&#8217;ve encountered about 10 times in the last two days while re-writing some code from a former co-worker, is just fucking stupid.  What this guy has done is taken a very common and instantly recognizable and understandable paradigm, the &#8220;while&#8221; loop, and turned it into something nowhere near as comprehensible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Johnson</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81098</link>
		<dc:creator>Kris Johnson</dc:creator>
		<pubDate>Wed, 12 Mar 2008 01:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81098</guid>
		<description>I'm prepared to be mocked here, but I want to know:  What is it about "do {...} while (cond);" that makes the user kick-worthy?</description>
		<content:encoded><![CDATA[<p>I&#8217;m prepared to be mocked here, but I want to know:  What is it about &#8220;do {&#8230;} while (cond);&#8221; that makes the user kick-worthy?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81094</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Wed, 12 Mar 2008 00:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xcski.com/2008/03/11/software-developers-who-need-to-be-kicked-in-the-balls#comment-81094</guid>
		<description>And women who do that kind of stuff deserve a kick in the balls, too, so what's the issue?</description>
		<content:encoded><![CDATA[<p>And women who do that kind of stuff deserve a kick in the balls, too, so what&#8217;s the issue?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
