<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-254534009376227400.comments</id><updated>2010-08-25T10:10:58.965-07:00</updated><category term='C#'/><category term='LINQ'/><category term='VisualStudio2008'/><category term='XML'/><category term='Design'/><category term='Leak'/><category term='WPF'/><category term='XAML'/><category term='UnitTest'/><category term='software development'/><title type='text'>creating stuff from Microsoft things</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.geekserg.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/comments/default'/><link rel='alternate' type='text/html' href='http://www.geekserg.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Him</name><uri>http://www.blogger.com/profile/12102911771654800067</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PoWFmfZWUBI/S8ZWJAxF7PI/AAAAAAAAAJM/WY70PUVVRTM/S220/IconHook.bmp'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-254534009376227400.post-8306900284126142213</id><published>2010-08-25T10:10:58.965-07:00</published><updated>2010-08-25T10:10:58.965-07:00</updated><title type='text'>Since it is a bug in Microsoft CLR you may expect ...</title><content type='html'>Since it is a bug in Microsoft CLR you may expect any weird operation to be a workaround. Just like emptying the recycle bin to cleanup unused Handles.&lt;br /&gt;&lt;br /&gt;However, I think when this bug gets fixed by Microsoft you should never call GC.Collect and GC.WaitForPendingFinalizers. The CLR should take care of unused objects and clean them up whenever is &amp;quot;the best&amp;quot; time to do it.&lt;br /&gt;&lt;br /&gt;For now should just use the workaround :(. Also in the bug tracking system it was marked as fixed but didn&amp;#39;t find in which version it got actually fixed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/1383889986949220524/comments/default/8306900284126142213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/1383889986949220524/comments/default/8306900284126142213'/><link rel='alternate' type='text/html' href='http://www.geekserg.com/2010/08/handling-leaking-handles.html?showComment=1282756258965#c8306900284126142213' title=''/><author><name>rubenhak</name><uri>http://www.blogger.com/profile/07661809897628539425</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.geekserg.com/2010/08/handling-leaking-handles.html' ref='tag:blogger.com,1999:blog-254534009376227400.post-1383889986949220524' source='http://www.blogger.com/feeds/254534009376227400/posts/default/1383889986949220524' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1417127619'/></entry><entry><id>tag:blogger.com,1999:blog-254534009376227400.post-5177535863950130587</id><published>2010-08-16T17:28:57.085-07:00</published><updated>2010-08-16T17:28:57.085-07:00</updated><title type='text'>Diana,
Let me rephrase my concern to make it more ...</title><content type='html'>Diana,&lt;br /&gt;Let me rephrase my concern to make it more clear.&lt;br /&gt;&lt;br /&gt;Your example is trivial. There is a &amp;quot;positive&amp;quot; case (y != 0) and a &amp;quot;negative&amp;quot; case (else block).&lt;br /&gt;&lt;br /&gt;What I&amp;#39;m saying is what if the &amp;quot;cases&amp;quot; of a conditional statement are not as trivial as your example? How should the programmer behave in that case?&lt;br /&gt;The author suggests that they should first put the positive case but I&amp;#39;m arguing that &amp;quot;positivity&amp;quot; is not perceived universally by everyone. One thing that is positive for me doesn&amp;#39;t have to be positive for you.&lt;br /&gt;&lt;br /&gt;So, unless there are concrete recommendations, this approach can end up with the same chaotic state as we currently see in source codes (assumingly the article suggests a way to avoid such chaos).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/5177535863950130587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/5177535863950130587'/><link rel='alternate' type='text/html' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html?showComment=1282004937085#c5177535863950130587' title=''/><author><name>securebox</name><uri>http://securebox.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html' ref='tag:blogger.com,1999:blog-254534009376227400.post-5809721294909045657' source='http://www.blogger.com/feeds/254534009376227400/posts/default/5809721294909045657' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-704322012'/></entry><entry><id>tag:blogger.com,1999:blog-254534009376227400.post-641318008023991032</id><published>2010-08-11T21:32:55.917-07:00</published><updated>2010-08-11T21:32:55.917-07:00</updated><title type='text'>Nice posting, thanks for sharing. Interesting that...</title><content type='html'>Nice posting, thanks for sharing. Interesting that there is somebody who thinks that much globally :) &lt;br /&gt;&lt;br /&gt;Securebox, seems that there is an answer inside the post for your question. Concrete recommendation will be to put the main goal in if statement. &lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt; &lt;br /&gt;int Divide(int x, int y)&lt;br /&gt;{&lt;br /&gt;    if(y != 0)&lt;br /&gt;        return x/y; &lt;br /&gt;    else&lt;br /&gt;        throw new Exception(&amp;quot;Hello World, I&amp;#39;m not your goal!&amp;quot;); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Btw, if else statement is really the most important statements in our lives. This is how we build the tree of our lives, even thought it&amp;#39;s not binary  :))</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/641318008023991032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/641318008023991032'/><link rel='alternate' type='text/html' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html?showComment=1281587575917#c641318008023991032' title=''/><author><name>Diana</name><uri>http://www.blogger.com/profile/11404183306576683927</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html' ref='tag:blogger.com,1999:blog-254534009376227400.post-5809721294909045657' source='http://www.blogger.com/feeds/254534009376227400/posts/default/5809721294909045657' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2145325827'/></entry><entry><id>tag:blogger.com,1999:blog-254534009376227400.post-2479179650733414078</id><published>2010-08-11T21:30:24.212-07:00</published><updated>2010-08-11T21:30:24.212-07:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/2479179650733414078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/2479179650733414078'/><author><name>Diana</name><uri>http://www.blogger.com/profile/11404183306576683927</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html' ref='tag:blogger.com,1999:blog-254534009376227400.post-5809721294909045657' source='http://www.blogger.com/feeds/254534009376227400/posts/default/5809721294909045657' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2145325827'/></entry><entry><id>tag:blogger.com,1999:blog-254534009376227400.post-7703047161172096881</id><published>2010-08-10T16:37:20.141-07:00</published><updated>2010-08-10T16:37:20.141-07:00</updated><title type='text'>First define what means &amp;quot;positive&amp;quot;. I th...</title><content type='html'>First define what means &amp;quot;positive&amp;quot;. I think positiveness is too subjective to be universally defined.&lt;br /&gt;&lt;br /&gt;I would recommend developing this idea more and come up with concrete recommendations on how one should place the &amp;quot;cases&amp;quot; of if statement.&lt;br /&gt;&lt;br /&gt;Try to be more concrete.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/7703047161172096881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/7703047161172096881'/><link rel='alternate' type='text/html' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html?showComment=1281483440141#c7703047161172096881' title=''/><author><name>securebox</name><uri>http://securebox.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html' ref='tag:blogger.com,1999:blog-254534009376227400.post-5809721294909045657' source='http://www.blogger.com/feeds/254534009376227400/posts/default/5809721294909045657' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-704322012'/></entry><entry><id>tag:blogger.com,1999:blog-254534009376227400.post-455963749569858029</id><published>2010-08-10T10:00:07.470-07:00</published><updated>2010-08-10T10:00:07.470-07:00</updated><title type='text'>Hmmm.... nice approach. If (i were you) Then { i w...</title><content type='html'>Hmmm.... nice approach. If (i were you) Then { i would accumulate some more patters/ideas like this to improve code readability in the IDE and suggest it to Microsoft/Visual Assist teams. } Else { I would wait somebody to suggest it to Microsoft/Visual Assist teams. } :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/455963749569858029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/5809721294909045657/comments/default/455963749569858029'/><link rel='alternate' type='text/html' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html?showComment=1281459607470#c455963749569858029' title=''/><author><name>rubenhak</name><uri>http://www.blogger.com/profile/07661809897628539425</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.geekserg.com/2010/08/if-this-then-else-that.html' ref='tag:blogger.com,1999:blog-254534009376227400.post-5809721294909045657' source='http://www.blogger.com/feeds/254534009376227400/posts/default/5809721294909045657' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1417127619'/></entry><entry><id>tag:blogger.com,1999:blog-254534009376227400.post-7434058238603776381</id><published>2010-06-23T17:25:00.409-07:00</published><updated>2010-06-23T17:25:00.409-07:00</updated><title type='text'>Very nice observation. Its a common mistake to mis...</title><content type='html'>Very nice observation. Its a common mistake to misunderstand role/purpose of methods and events. Will recommend this article at the workplace.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/6122459156462882435/comments/default/7434058238603776381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/254534009376227400/6122459156462882435/comments/default/7434058238603776381'/><link rel='alternate' type='text/html' href='http://www.geekserg.com/2009/10/danger-events.html?showComment=1277339100409#c7434058238603776381' title=''/><author><name>rubenhak</name><uri>http://www.blogger.com/profile/07661809897628539425</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.geekserg.com/2009/10/danger-events.html' ref='tag:blogger.com,1999:blog-254534009376227400.post-6122459156462882435' source='http://www.blogger.com/feeds/254534009376227400/posts/default/6122459156462882435' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1417127619'/></entry></feed>
