<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>What Does This Code Do?</title><link>http://blogs.msdn.com/alfredth/archive/2008/10/23/what-does-this-code-do.aspx</link><description>“What does this code do?” is often a bit of a gotcha sort of question. OK sometimes it is a simple thing to make sure a student understands the syntax but many times it is really asking if the student understands some underlying concepts of either the</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: What Does This Code Do?</title><link>http://blogs.msdn.com/alfredth/archive/2008/10/23/what-does-this-code-do.aspx#9012799</link><pubDate>Thu, 23 Oct 2008 13:40:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9012799</guid><dc:creator>Henk de Koning</dc:creator><description>&lt;p&gt;I guess this is a case of conflicting defaults: &lt;/p&gt;
&lt;p&gt;VB defaults to overflow checking, but the compiler allows you to turn it off (project props/compile/advanced compile options).&lt;/p&gt;
&lt;p&gt;C# allows you to explicitly specify the behavior you want (see checked/unchecked keywords), but if you don't it will listen to the /checked compiler option (which is off by default).&lt;/p&gt;
&lt;p&gt;-- Henkk&lt;/p&gt;
</description></item><item><title>re: What Does This Code Do?</title><link>http://blogs.msdn.com/alfredth/archive/2008/10/23/what-does-this-code-do.aspx#9012803</link><pubDate>Thu, 23 Oct 2008 13:42:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9012803</guid><dc:creator>Thomas Scheidegger</dc:creator><description>&lt;p&gt;Good/bad is NOT the point.&lt;/p&gt;
&lt;p&gt;But _expected_ behavior.&lt;/p&gt;
&lt;p&gt;And that's different from language to language.&lt;/p&gt;
&lt;p&gt;You have to learn the characteristics of each language, NEVER guess from what you know from others.&lt;/p&gt;
</description></item><item><title>re: What Does This Code Do?</title><link>http://blogs.msdn.com/alfredth/archive/2008/10/23/what-does-this-code-do.aspx#9013164</link><pubDate>Thu, 23 Oct 2008 18:41:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9013164</guid><dc:creator>odahan</dc:creator><description>&lt;p&gt;It's a very difficult question cause no one has the same answer.. it's the proof :-)&lt;/p&gt;
&lt;p&gt;Thomas is saying &amp;quot;just learn correctly the language and you'll never have problem&amp;quot;. I fully disagree this point of view. Of course in-depth knowledge of the language is a starting point for every serious developer, but this &amp;quot;falsy logical&amp;quot; point of view will lead to avoid strongly typed languages for example. After all, if you exactly know what you do you don't need a strongly typed language ... So I understand Thomas point of view but it is not a good reason to explain why C# is allowing overflow without any exception by default.&lt;/p&gt;
&lt;p&gt;So my opinion is, on this point, C# is on the wrong way. We want and we need not ony strongly typed languages but also strongly &amp;quot;controled&amp;quot; languages. &lt;/p&gt;
&lt;p&gt;I dislike VB, every version since the first till the most recent one, but I must admit that on this point VB behaves better because it does what a moder language is supposed to do : strong controls and throwing exception when needed.&lt;/p&gt;
&lt;p&gt;When Anders created C# from Delphi he took the best ideas of the later (properties for example) but the C temptation was certainly too strong and he added some C/C++ features to C# not in Delphi, and most often it has been a mistake.&lt;/p&gt;
&lt;p&gt;Apart from this, I was a Delphi fan, and I'm a C# fan, and I'll will not switch to VB :-)&lt;/p&gt;
</description></item></channel></rss>