<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Tim Barcz - Help</title>
    <link>http://www.timbarcz.com/blog/</link>
    <description>My Code is My Craft</description>
    <image>
      <url>http://www.timbarcz.com/blog/content/binary/channelImage.jpg</url>
      <title>Tim Barcz - Help</title>
      <link>http://www.timbarcz.com/blog/</link>
    </image>
    <language>en-us</language>
    <copyright>Tim Barcz</copyright>
    <lastBuildDate>Wed, 19 Nov 2008 02:23:47 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>blog@timbarcz.com</managingEditor>
    <webMaster>blog@timbarcz.com</webMaster>
    <item>
      <trackback:ping>http://www.timbarcz.com/blog/Trackback.aspx?guid=a9c6b312-c395-44f9-86a5-f261fccdcd36</trackback:ping>
      <pingback:server>http://www.timbarcz.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.timbarcz.com/blog/PermaLink,guid,a9c6b312-c395-44f9-86a5-f261fccdcd36.aspx</pingback:target>
      <dc:creator>Tim Barcz</dc:creator>
      <wfw:comment>http://www.timbarcz.com/blog/CommentView,guid,a9c6b312-c395-44f9-86a5-f261fccdcd36.aspx</wfw:comment>
      <wfw:commentRss>http://www.timbarcz.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=a9c6b312-c395-44f9-86a5-f261fccdcd36</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Today I tossed the idea of a developer book club out to the rest of my team. 
They all seemed to be on board with varying degrees of enthusiasm.  I know that
we won't be the first to try this and so I'm hoping some of you out there can share
some stories/ideas of what worked for your team.
</p>
        <p>
The goals are three-fold:
</p>
        <ul>
          <li>
Team/community building 
</li>
          <li>
Common knowledge 
</li>
          <li>
Knowledge building/sharing 
</li>
        </ul>
        <p>
Specifically I'm looking for three things:
</p>
        <ul>
          <li>
What books would be on your short list?  Which book should we start with? 
</li>
          <li>
What works well to keep people excited/enthusiastic? 
</li>
          <li>
What are the things we should absolutely stay away from, whether they be specific
books or implementation details? 
</li>
        </ul>
        <p>
So let me have it, what advice can you share?  What can we do to make our book
club a success?
</p>
        <img width="0" height="0" src="http://www.timbarcz.com/blog/aggbug.ashx?id=a9c6b312-c395-44f9-86a5-f261fccdcd36" />
      </body>
      <title>Developer Book Club - Recommendations Needed</title>
      <guid isPermaLink="false">http://www.timbarcz.com/blog/PermaLink,guid,a9c6b312-c395-44f9-86a5-f261fccdcd36.aspx</guid>
      <link>http://www.timbarcz.com/blog/DeveloperBookClubRecommendationsNeeded.aspx</link>
      <pubDate>Wed, 19 Nov 2008 02:23:47 GMT</pubDate>
      <description>&lt;p&gt;
Today I tossed the idea of a developer book club out to the rest of my team.&amp;#160;
They all seemed to be on board with varying degrees of enthusiasm.&amp;#160; I know that
we won't be the first to try this and so I'm hoping some of you out there can share
some stories/ideas of what worked for your team.
&lt;/p&gt;
&lt;p&gt;
The goals are three-fold:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Team/community building 
&lt;/li&gt;
&lt;li&gt;
Common knowledge 
&lt;/li&gt;
&lt;li&gt;
Knowledge building/sharing 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Specifically I'm looking for three things:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
What books would be on your short list?&amp;#160; Which book should we start with? 
&lt;/li&gt;
&lt;li&gt;
What works well to keep people excited/enthusiastic? 
&lt;/li&gt;
&lt;li&gt;
What are the things we should absolutely stay away from, whether they be specific
books or implementation details? 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
So let me have it, what advice can you share?&amp;#160; What can we do to make our book
club a success?
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.timbarcz.com/blog/aggbug.ashx?id=a9c6b312-c395-44f9-86a5-f261fccdcd36" /&gt;</description>
      <comments>http://www.timbarcz.com/blog/CommentView,guid,a9c6b312-c395-44f9-86a5-f261fccdcd36.aspx</comments>
      <category>Help</category>
    </item>
    <item>
      <trackback:ping>http://www.timbarcz.com/blog/Trackback.aspx?guid=89fad9db-e81f-43c5-8813-44e8fd72384c</trackback:ping>
      <pingback:server>http://www.timbarcz.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.timbarcz.com/blog/PermaLink,guid,89fad9db-e81f-43c5-8813-44e8fd72384c.aspx</pingback:target>
      <dc:creator>Tim Barcz</dc:creator>
      <wfw:comment>http://www.timbarcz.com/blog/CommentView,guid,89fad9db-e81f-43c5-8813-44e8fd72384c.aspx</wfw:comment>
      <wfw:commentRss>http://www.timbarcz.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=89fad9db-e81f-43c5-8813-44e8fd72384c</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I understand floating point numbers can be somewhat imprecise but I'm a bit bothered
today when I see the following evaluates to false:
</p>
        <div>
          <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
            <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">
              <span style="color: #606060"> 1:</span>
              <span style="color: #0000ff">float</span> f
= .16f;</pre>
            <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
              <span style="color: #606060"> 2:</span>
              <span style="color: #0000ff">double</span> d
= .16d;</pre>
            <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">
              <span style="color: #606060"> 3:</span>  </pre>
            <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
              <span style="color: #606060"> 4:</span> Assert.That(f,
Is.EqualTo(d))</pre>
          </div>
        </div>
        <p>
Annoyingly I wanted to see what the two values are:
</p>
        <div>
          <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
            <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">
              <span style="color: #606060"> 1:</span> Console.WriteLine((<span style="color: #0000ff">double</span>)f)</pre>
            <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
              <span style="color: #606060"> 2:</span> Console.WriteLine(d);</pre>
          </div>
        </div>
        <p>
produces the following respectively:
</p>
        <p>
.159999996423721
</p>
        <p>
.16
</p>
        <p>
What bothers me about this, and I'm hoping someone can eloquently explain this, the
MSDN docs say this should be implicitly converted.  From the <a href="http://msdn.microsoft.com/en-us/library/aa691282(VS.71).aspx">MSDN
doc article on implicit numeric conversions</a>:
</p>
        <ul>
          <li>
From <code>float</code> to <code>double</code>. 
</li>
        </ul>
        <p>
Float is 32-bit and double is 64-bit, so why can't the float fit nicely inside the
address space for the double?
</p>
        <p>
Hell, if you're not going to respect the integrity of the number what's the point
of the implicit conversion?
</p>
        <img width="0" height="0" src="http://www.timbarcz.com/blog/aggbug.ashx?id=89fad9db-e81f-43c5-8813-44e8fd72384c" />
      </body>
      <title>Exercise Caution When Using Floating Point Numbers</title>
      <guid isPermaLink="false">http://www.timbarcz.com/blog/PermaLink,guid,89fad9db-e81f-43c5-8813-44e8fd72384c.aspx</guid>
      <link>http://www.timbarcz.com/blog/ExerciseCautionWhenUsingFloatingPointNumbers.aspx</link>
      <pubDate>Wed, 05 Nov 2008 20:15:58 GMT</pubDate>
      <description>&lt;p&gt;
I understand floating point numbers can be somewhat imprecise but I'm a bit bothered
today when I see the following evaluates to false:
&lt;/p&gt;
&lt;div&gt;
&lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;
&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 1:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;float&lt;/span&gt; f
= .16f;&lt;/pre&gt;
&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 2:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;double&lt;/span&gt; d
= .16d;&lt;/pre&gt;
&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 3:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 4:&lt;/span&gt; Assert.That(f,
Is.EqualTo(d))&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;
Annoyingly I wanted to see what the two values are:
&lt;/p&gt;
&lt;div&gt;
&lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;
&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 1:&lt;/span&gt; Console.WriteLine((&lt;span style="color: #0000ff"&gt;double&lt;/span&gt;)f)&lt;/pre&gt;
&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 2:&lt;/span&gt; Console.WriteLine(d);&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;
produces the following respectively:
&lt;/p&gt;
&lt;p&gt;
.159999996423721
&lt;/p&gt;
&lt;p&gt;
.16
&lt;/p&gt;
&lt;p&gt;
What bothers me about this, and I'm hoping someone can eloquently explain this, the
MSDN docs say this should be implicitly converted.&amp;#160; From the &lt;a href="http://msdn.microsoft.com/en-us/library/aa691282(VS.71).aspx"&gt;MSDN
doc article on implicit numeric conversions&lt;/a&gt;:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
From &lt;code&gt;float&lt;/code&gt; to &lt;code&gt;double&lt;/code&gt;. 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Float is 32-bit and double is 64-bit, so why can't the float fit nicely inside the
address space for the double?
&lt;/p&gt;
&lt;p&gt;
Hell, if you're not going to respect the integrity of the number what's the point
of the implicit conversion?
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.timbarcz.com/blog/aggbug.ashx?id=89fad9db-e81f-43c5-8813-44e8fd72384c" /&gt;</description>
      <comments>http://www.timbarcz.com/blog/CommentView,guid,89fad9db-e81f-43c5-8813-44e8fd72384c.aspx</comments>
      <category>Help</category>
      <category>Rant</category>
    </item>
  </channel>
</rss>