Jan Schreuder on .Net

.Net code samples, experiences, observations

View my professional profile on LinkedIn

Recent Posts

Tags

News

  • Inappropriate comments will be deleted at my discretion.

    The information and code samples in this weblog is provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the merchantability and/or fitness for a particular purpose.

Community

Email Notifications

Tool suppliers

Tools

General

Microsoft

Favorite blogs

Archives

May 2004 - Posts

C# or VB.Net

Although I believe that this is some sort of a religious discussion, with strong supporters for both, there are still people that are trying to be objective about all this. Wim van den Brink sent me this link. The authors of the book they're trying to sell here have attempted to compare both languages objectively. Some examples given at the site:

?:, ++, -- Operators

C# includes ?: (conditional assignment), ++ (increment) and -- (decrement) operators.
Verdict: I'll give this one to C#, but given that these operators increase brevity at the cost of readability, you can make a case that their lack in VB.NET should really represent a win for VB.NET.

With Statement

The VB.NET With statement can be used to create a block in which it is possible to directly access methods or objects nested in an object hierarchy. This can result in more easily readable code. 
Verdict: Though convenient, and frequently used by VB.NET programmers, this feature does not represent a significant advantage.

Interesting reading material.