<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Fun</title>
        <link>http://geekswithblogs.net/sglima/category/11075.aspx</link>
        <description>Fun</description>
        <language>pt</language>
        <copyright>Sglima</copyright>
        <managingEditor>sglima@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>WTF #4</title>
            <link>http://geekswithblogs.net/sglima/archive/2010/03/23/wtf-4.aspx</link>
            <description>&lt;p&gt;Well... I cant really express my feelings for this kind of programming...&lt;/p&gt;
&lt;p&gt;The WTF way:&lt;/p&gt;
&lt;p&gt;DateTime myNewDate = DateTime.Parse((myOldDate.Year - 1).ToString() + "-" + myOldDate.Month.ToString() + "-" + myOldDate.Day.ToString());&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The right way:&lt;/p&gt;
&lt;p&gt; DateTime myNewDate = myOldDate.Date.AddYears(-1);&lt;/p&gt;
&lt;p&gt; &lt;/p&gt; &lt;img src="http://geekswithblogs.net/sglima/aggbug/138753.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Sglima</dc:creator>
            <guid>http://geekswithblogs.net/sglima/archive/2010/03/23/wtf-4.aspx</guid>
            <pubDate>Tue, 23 Mar 2010 17:17:20 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/sglima/comments/138753.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/sglima/archive/2010/03/23/wtf-4.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/sglima/comments/commentRss/138753.aspx</wfw:commentRss>
        </item>
        <item>
            <title>WTF #3</title>
            <link>http://geekswithblogs.net/sglima/archive/2010/03/15/wtf-3.aspx</link>
            <description>&lt;p&gt;Well, this one i simply cannot understand... why anyone would do +0 after and int.parse. Any Ideas?&lt;/p&gt;
&lt;p&gt;int myVar = Int32.Parse(ConfigurationManager.AppSettings["mySetting"] + "") + 0;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt; &lt;img src="http://geekswithblogs.net/sglima/aggbug/138525.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Sglima</dc:creator>
            <guid>http://geekswithblogs.net/sglima/archive/2010/03/15/wtf-3.aspx</guid>
            <pubDate>Mon, 15 Mar 2010 12:52:36 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/sglima/comments/138525.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/sglima/archive/2010/03/15/wtf-3.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/sglima/comments/commentRss/138525.aspx</wfw:commentRss>
        </item>
        <item>
            <title>WTF #2</title>
            <link>http://geekswithblogs.net/sglima/archive/2010/02/22/wtf-2.aspx</link>
            <description>&lt;p&gt;Sometimes we find some code that... well.... I guess someone must be really REALLY high to write...&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The WTF way&lt;/p&gt;
&lt;p&gt;DateTime.Parse(DateTime.Now.ToShortDateString()).ToString("dd-MM-yyyy")&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The right way:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;DateTime.Now.ToString("dd-MM-yyyy")&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt; &lt;img src="http://geekswithblogs.net/sglima/aggbug/138085.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Sglima</dc:creator>
            <guid>http://geekswithblogs.net/sglima/archive/2010/02/22/wtf-2.aspx</guid>
            <pubDate>Mon, 22 Feb 2010 10:26:09 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/sglima/comments/138085.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/sglima/archive/2010/02/22/wtf-2.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/sglima/comments/commentRss/138085.aspx</wfw:commentRss>
        </item>
        <item>
            <title>WTF #1</title>
            <link>http://geekswithblogs.net/sglima/archive/2009/12/14/wtf-1.aspx</link>
            <description>&lt;p&gt;In this category I will post some "creative" solutions to problems. (Code changed to protect the inocents).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;// The WTF way&lt;/p&gt;
&lt;p&gt;int  myInt = Int32.Parse(myDataTable.Rows.Count + "");&lt;/p&gt;
&lt;p&gt;// The correct way&lt;/p&gt;
&lt;p&gt;int  myInt = myDataTable.Rows.Count;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/sglima/aggbug/136966.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Sglima</dc:creator>
            <guid>http://geekswithblogs.net/sglima/archive/2009/12/14/wtf-1.aspx</guid>
            <pubDate>Mon, 14 Dec 2009 11:37:07 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/sglima/comments/136966.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/sglima/archive/2009/12/14/wtf-1.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/sglima/comments/commentRss/136966.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
