Talk:Comparison of C Sharp and Visual Basic .NET

message: This page is horrible, and is very POV. It should be tagged for a complete rewrite.
65.161.188.11 18:50, 23 April 2007 (UTC)
thread_title:  This page is poorly written 

message: I just added the Syntax Comparisons section. Could someone update the table formatting for me (I'm not sure how)? Of course, expanding the list would also be nice! --Jimmytharpe 18:55, 25 January 2007 (UTC)
thread_title:  Syntax Comparisons 

message: I have moved the content from this page to the /Archive01. The topics did not seem to be getting any additional discussion. I kept anything with the most recent comment in 2007. Gaijin42 14:54, 5 March 2007 (UTC)
thread_title: Moved to Archives

message: I added the citation needed tag to the "internal microsoft surveys" bullet in the adoption section. If a citation doesn't show up in the next few days I will drop the bullet. Gaijin42 14:54, 5 March 2007 (UTC)
replies: text: I dropped this per the note above. Gaijin42 04:30, 14 March 2007 (UTC)
thread_title:  Adoption 

message: There has been significant input and change since my original submission of this article. I am going to remove the rewite tag. Gaijin42 14:54, 5 March 2007 (UTC)
thread_title: Rewrite tag

message: For i As Integer = 1 To 3
 ' do something
Next
For Each i As Integer In CollectionOfInt
 ' ...
Next
looks pretty much like iterators, doesn't it?  —Preceding unsigned comment added by 89.246.47.4 (talk) 18:40, 9 October 2007 (UTC)
replies: text: Thats not waht they mean by iterators.  Iterators are a special syntax introduced in C# 2.0 that make it much easier to develop enumerators (i.e., the "yield return" statement).  It allows one to write a method that returns an enumerator, but instead of executing fully when it is called, it executes until it yields its first value, which becomes the first value of the enumeration.  When the next value is requested via the enumerator, the method begins executing again from where it left off (not at the beginning of the method).  Its more or less a specialized form of coroutines.  —Preceding unsigned comment added by Nimrand (talk • contribs) 14:16, 12 October 2007 (UTC)
thread_title:  No Iterators in VBnet? 

message: Is there no performance increase when using C# rather than VB.NET? A few years ago I had a talk from a senior developer at tesco.com who said explicitly that they had to migrate from VB.NET to C# because VB.NET was just too slow. This was definitely prior to .net 2.0 and may even have been 1.0. It seemed strange to me at the time as I was under the impression that both compile to the same thing prior to execution and the difference is only in the syntax.  —Preceding unsigned comment added by 86.16.149.12 (talk) 14:00, 2 January 2008 (UTC)
replies: text: Ultimately C# and VB.Net compile down to MSIL/CIL where the execution is identical. However, certain constructs that are easy to use in C# generate better IL than the easy to use VB equivilent, and visa versa.  Usually there are ways to generate the better IL in the source language, but they may be a bit more cumbersome to maintain. Of much larger impact is the social patterns that are common to VB and C#, and the historical backgrounds of the developers.  This info is entirely unprovable, and therefore not applicable to the main article, but it is my opinion that people who naturally gravitate to C# are much more aware of the code that they are writing, and what the impact is.  VB developers are used to having things hidden from them, having magic wands that generate lots of code automatically, and thus are not as intimately aware of some of the performance considerations. But that is  an issue of the developer, and not the language.  (You may begin your response flames everyone :) )
Gaijin42 (talk) 20:52, 15 January 2008 (UTC)
replies: text: There is no real performance difference between VB.NET and C#.  If they migrated from VB.NET to C# because of performance issues, they don't know what they're doing. 12.10.248.51 (talk) 19:17, 1 October 2008 (UTC)
thread_title:  Performance 

message: While there are some technical differences between the languages, there are also many differences in the cultures of the developers who use them. .NET developers have come from many different programming backgrounds, each having very different coding standards, best practices, etc. Many of these paradigms came from language or IDE features. While the historical reasons for these practices are no longer applicable in all cases, the culture differences remain .
===Visual Basic .NET culture===
VB historically was a RAD tool, as well as a tool that was usable by untrained developers, or management. As a result of this wider user base, VB allowed for many shortcuts and ease of use features. These features allowed for the uninitiated to create code, but also contributed to maintenance and debugging issues. Examples of the shortcuts allowed in VB
* Optional declaration of variables
* Optional Weak Typing using late binding
* Optional Parameters
===C# culture===
C# developers tend to be prior C/C++ developers, or Java developers. C# is syntactically very similar to C and Java, the IDEs and command line tools work very similarly, and the culture is the same. Also, C# inherited quite a bit of its style and culture from the Delphi/Object Pascal programming language.
Cosiwiki (talk) 11:22, 31 July 2008 (UTC)
replies: text: Instead of moving the section to the talk page, why not find some sources yourself? 12.10.248.51 (talk) 19:23, 1 October 2008 (UTC)
thread_title: Culture

message: C# developers tend to be prior C/C++ developers, or Java developers. C# is syntactically very similar to C and Java, the IDEs and command line tools work very similarly, and the culture is the same. Also, C# inherited quite a bit of its style and culture from the Delphi/Object Pascal programming language.
Cosiwiki (talk) 11:22, 31 July 2008 (UTC)
replies: text: Instead of moving the section to the talk page, why not find some sources yourself? 12.10.248.51 (talk) 19:23, 1 October 2008 (UTC)
thread_title: C# culture

message: Does anyone else think the "Features common to all .Net languages" section is pointless? Is that section trying to say anything more specific than "see .NET Framework"?
Thejoshwolfe (talk) 09:26, 18 August 2008 (UTC)
thread_title: Pointless Section?

message: In Criticisms of VB.NET not applicable to C#, it is stated that:
*Assigning and comparing variables uses the same token, =. Whereas C# has separate tokens, == for comparison and = to assign a value.
Along the same lines, would it be relevant to include a statement in Criticisms of C# not applicable to VB.NET similar to the aforementioned item?
*Addition and string concatenation use the same token, +. Whereas VB.NET has separate tokens, + for addition, and & for concatenation.
It is mentioned as a common pitfall in CSharp for Programmers By Paul J. Deitel (pg. 204, Fig 7.3)
They both pertain to the same issue of reusing operators for very different operations. I suggest that either the VB.NET point is removed or that the C# point be added (depending on if it's established that reusing operators is a syntactical disadvantage), as it's not NPOV to include one or the other when both suffer from the same issue. I will most likely add the point to the C# section in a few days if no one has any problems with it, so please feel free to discuss here, thanks! --64.9.97.44 (talk) 16:10, 29 December 2008 (UTC)
thread_title:  C# uses the same operator for addition and string concatenation 

message: There are quite a few comparisons in the article that are specifically about .net 1.0 etc (even called out as such in the article). I do not feel that this type of comparison adds much value, as this is not a "history of the comparison of" article, or just a "history of" article. If no significant objects are raised, I will remove those bits, (maybe keeping 2008 and above?) Gaijin42 (talk) 14:36, 24 October 2011 (UTC)
thread_title: Historical comparisons

message: These two scripts are the same, except for one thing:
Console.WriteLine("Hello World!");
Console.WriteLine("Hello World!")
No semi-colon (;). Should that be mentioned?  — Preceding unsigned comment added by Alexkill51 (talk • contribs) 14:23, 13 April 2012 (UTC)
thread_title:  What about the semi-colon? 

message: This article is very poorly written and perhaps should be removed. I think many would dispute that c++ is a continuation of C.  — Preceding unsigned comment added by 139.62.86.11 (talk) 07:11, 28 February 2014 (UTC)
thread_title:  C evolved into c++? 

message: in Visual Basic.NET there is the additional keyword: "until". It can be used instead of keyword "while", but with the condition will be  changed to the opposite. (Sorry for bad English!)
until: Repeats the loop until the condition is True
while: Repeats the loop while the condition is True (or until the condition is False)
for example:
do until x = True
    some code
loop
brings the same results as:
do while x = False
    some code
loop
2003:6C:CA11:ED84:68BE:E2D4:3F36:A933 (talk) 22:06, 30 November 2015 (UTC)
thread_title:  VB has keyword "until" 

message: Hello fellow Wikipedians,
I have just modified 2 external links on Comparison of C Sharp and Visual Basic .NET. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
*Corrected formatting/usage for http://cm.bell-labs.com/cm/cs/who/dmr/chist.html
*Added archive https://web.archive.org/web/20120313000454/http://www.getdotnetcode.com/gdncstore/free/Articles/OPTION%20STRICT%20ON.htm to http://www.getdotnetcode.com/gdncstore/free/Articles/OPTION%20STRICT%20ON.htm
*Added  tag to http://www.linuxfordevices.com/c/a/News/Mono-brings-Visual-Basic-programs-to-Linux/
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
Cheers.—InternetArchiveBot (Report bug) 16:15, 11 August 2017 (UTC)
thread_title:  External links modified 

message: There is a move discussion in progress on Talk:C Sharp (programming language) which affects this page. Please participate on that page and not in this talk page section. Thank you.  —RMCD bot 21:35, 23 August 2018 (UTC)
thread_title:  Move discussion in progress