<?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: Spot the Bug Part 2</title>
	<atom:link href="http://cafe.elharo.com/programming/spot-the-bug-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://cafe.elharo.com/programming/spot-the-bug-part-2/</link>
	<description>Longer than a blog; shorter than a book</description>
	<lastBuildDate>Fri, 19 Mar 2010 14:48:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://cafe.elharo.com/programming/spot-the-bug-part-2/comment-page-1/#comment-215141</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 09 Apr 2008 16:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/programming/spot-the-bug-part-2/#comment-215141</guid>
		<description>I used to work at a financial company where null values were not handled properly in the Java / XML conversion. The end result? If your last name was &quot;Null&quot;, your application had to be processed manually.

To this day, the bug still exists. With SOA, it would cost too much to change the apps to properly handle it.</description>
		<content:encoded><![CDATA[<p>I used to work at a financial company where null values were not handled properly in the Java / XML conversion. The end result? If your last name was &#8220;Null&#8221;, your application had to be processed manually.</p>
<p>To this day, the bug still exists. With SOA, it would cost too much to change the apps to properly handle it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A. Openhim</title>
		<link>http://cafe.elharo.com/programming/spot-the-bug-part-2/comment-page-1/#comment-213321</link>
		<dc:creator>A. Openhim</dc:creator>
		<pubDate>Fri, 04 Apr 2008 15:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/programming/spot-the-bug-part-2/#comment-213321</guid>
		<description>I think they are using a date and then a float for the interval before the &quot;last call&quot;.  They then attempt to do date arithmetic themselves.</description>
		<content:encoded><![CDATA[<p>I think they are using a date and then a float for the interval before the &#8220;last call&#8221;.  They then attempt to do date arithmetic themselves.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://cafe.elharo.com/programming/spot-the-bug-part-2/comment-page-1/#comment-212762</link>
		<dc:creator>Gaurav</dc:creator>
		<pubDate>Wed, 02 Apr 2008 20:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/programming/spot-the-bug-part-2/#comment-212762</guid>
		<description>Someone was trying to save a few bytes by storing the date in a float
They wrote their own function to convert this representation into a Date String that used floating point arithmetic.
This is a classic example of people who think they are writing efficient code - who in the process write code that is buggy and impossible to maintain.</description>
		<content:encoded><![CDATA[<p>Someone was trying to save a few bytes by storing the date in a float<br />
They wrote their own function to convert this representation into a Date String that used floating point arithmetic.<br />
This is a classic example of people who think they are writing efficient code &#8211; who in the process write code that is buggy and impossible to maintain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Krueger</title>
		<link>http://cafe.elharo.com/programming/spot-the-bug-part-2/comment-page-1/#comment-212731</link>
		<dc:creator>Bill Krueger</dc:creator>
		<pubDate>Wed, 02 Apr 2008 19:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/programming/spot-the-bug-part-2/#comment-212731</guid>
		<description>Seems like someone was using a float (or double) to do non-floating point value handling (maybe using the different parts of the float to represent two independent integers) which eventually lead to a representation that wasn&#039;t a real floating point number. Silly them. To avoiding things like this  teach the developers about IEEE floating point number representation.</description>
		<content:encoded><![CDATA[<p>Seems like someone was using a float (or double) to do non-floating point value handling (maybe using the different parts of the float to represent two independent integers) which eventually lead to a representation that wasn&#8217;t a real floating point number. Silly them. To avoiding things like this  teach the developers about IEEE floating point number representation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Semi Anonymous</title>
		<link>http://cafe.elharo.com/programming/spot-the-bug-part-2/comment-page-1/#comment-212229</link>
		<dc:creator>Semi Anonymous</dc:creator>
		<pubDate>Tue, 01 Apr 2008 18:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/programming/spot-the-bug-part-2/#comment-212229</guid>
		<description>“Last Call Ends NaN”

I would guess that this has something to do with leap year</description>
		<content:encoded><![CDATA[<p>“Last Call Ends NaN”</p>
<p>I would guess that this has something to do with leap year</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Spiewak</title>
		<link>http://cafe.elharo.com/programming/spot-the-bug-part-2/comment-page-1/#comment-212196</link>
		<dc:creator>Daniel Spiewak</dc:creator>
		<pubDate>Tue, 01 Apr 2008 17:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/programming/spot-the-bug-part-2/#comment-212196</guid>
		<description>&quot;Last Call Ends NaN&quot;

Probably caused by a division by zero or similar.  Best way to avoid would be to debug the code better next time.  :-)  Alternatively, just perform a few minor checks or modify the Float -&gt; String conversion to test for NaN and have a sane default.</description>
		<content:encoded><![CDATA[<p>&#8220;Last Call Ends NaN&#8221;</p>
<p>Probably caused by a division by zero or similar.  Best way to avoid would be to debug the code better next time.  <img src='http://cafe.elharo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Alternatively, just perform a few minor checks or modify the Float -&gt; String conversion to test for NaN and have a sane default.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
