VB.NET VS C#

topic posted Mon, December 29, 2003 - 10:08 AM by  offlineJacob Wilson,
If there were a titanic battle tommorrow, between VB.NET and C#, like Monkey VS Robot style, I tend to think C# would emerge triumphant.

Thats just my preference though.

Anyone know why VB.NET is used at all?
posted by:
Jacob Wilson,
San Diego
  • Re: VB.NET VS C#

    Thu, January 15, 2004 - 10:09 AM
    Because a lot of people have legacy VB code they
    dont want to convert. When you're in that situation,
    and you've got too much invested in code libraries
    to throw them away, you just take all your old stuff
    and throw it in an assembly.

    That way, its still usable, you're not throwing
    away existing code, and you can start coding in the
    new stuff immediately instead of worrying about
    converting....
  • Re: VB.NET VS C#

    Thu, January 15, 2004 - 10:22 AM
    I can access VB libraries from C# though, so I still dont really see any value added to it. I mean, I used to write things in VB, it was useful at the time, but I have definitely been seduced by C#. I think the learning curve to VB.NET is at least the same as C#, but I still prefer C# if I have my 'ruthers.

    To each their own though.
    • Re: VB.NET VS C#

      Wed, January 28, 2004 - 9:06 AM
      I firmly agree with you. However, working as a contracter for a nationwide company, I asked my recruiter and account rep for their input. They both said that a lot of companies looking for .NET developers want C#, instead of VB. So, I get a book to learn the syntax, and find out there are some things you can do with C#, that you can't in VB. Although I don't think I have had a valid reason to override the '+' as a mathematical operand. But you can do it in C#.

      If you don't have to learn it, stick with VB! If you do, it isn't too bad.

      Just my 2 cents!
  • Re: VB.NET VS C#

    Wed, January 28, 2004 - 1:58 PM
    This topic comes up on every .NET related list and newsgroup. And it brings the usual type of responses: either C# is the king screw VB, or don't pick on poor VB coders C# ain't that great. And of course the wise person in the group will say: it doesn't matter, C# or VB.NET, language is just a tool to accomplish a task, use whichever works for you.
    As far as the battle concerned VBers will woop C#ers a**es because there're just so many of them.
  • E
    E
    offline 7

    Re: VB.NET VS C#

    Wed, January 28, 2004 - 6:47 PM
    Speaking as a mercenary, C# is 'better' than VB.NET because, and ONLY because, billing rates are higher for C#.

    Other than that, who gives a sh*te?
    • Re: VB.NET VS C#

      Fri, January 30, 2004 - 12:44 PM
      I agree with that, thanks to MS marketing machine.
      • Re: VB.NET VS C#

        Sat, January 31, 2004 - 5:42 AM
        I recently chose to write my libraries in C# even though I could have done it in VB because C# supports API description via ///. You can then pick up description through intellisense. I think this will be rectified in the next release though.

        Additionally, I find that my C# ADO.NET code runs between 2-6% faster. This has to do with VB compiler generating more code than it needs -- have a look at the IL code -- same IL, just more of it from VB compiler.

        I love VB when I work with Office automation. I hate to have to pass missing values to Office API when working with C#. When I don't know which version of Office my client has, VB is great for that too because I can use late binding -- tough to do with C#. You can also provide arguments explicitly with VB, saving lots of typing for long-a## argument list. Another thing -- optional parameters are great with VB.
  • Re: VB.NET VS C#

    Tue, February 10, 2004 - 2:38 PM
    And you know, I just plain dont like loose typed languages.

    One thing I may want to point out, is I was never formally trained. So I generally try to stick with things that are as re-usable as possible. C# is sort of similar to Java, C++, PERL, JavaScript in syntax. Well, at least in my mind. They are all strict, and somehow all work together in my head.

    Meanwhile, VB only works with VB. I really cant think of anything it is similar too. I sometimes think they only put it in the package becasue a bunch of people knew VB, and would be less scared if it was "VB.NET". But hell, what do I know.
    • Re: VB.NET VS C#

      Tue, May 4, 2004 - 1:59 PM
      I'm newer to development and VB seems more common sense english than c#. of course i realize that makes it incredibly inefficient and wordy, but its great for new coders to understand the processes.
  • Re: VB.NET VS C#

    Tue, May 4, 2004 - 6:10 PM
    Screw VB! Screw C#! Europa rules!
    • Re: VB.NET VS C#

      Tue, May 11, 2004 - 1:13 PM
      I like VB because it's fast. That's all. I don't have time to learn C#. I'm just barely keeping my head above water with VB!
      • Re: VB.NET VS C#

        Tue, May 18, 2004 - 8:02 PM
        I was joking about Europa, which is FoxPro for .NET. VB and C# are both adequate.
        • Re: VB.NET VS C#

          Wed, May 19, 2004 - 7:50 AM
          I am sort of new to this, and I understand adequate, but is there an environment where one would be preferred over the other?

          Would mobile application development be better in VB?
          What about Web?
          • Re: VB.NET VS C#

            Thu, May 20, 2004 - 8:35 PM
            nope. they both are extremely adequate in mobile dev. my company uses vb for mobile apps. some of the best selling and profitable mobile apps around, mind you. best of luck exploring .net!
  • Re: VB.NET VS C#

    Thu, May 20, 2004 - 8:33 PM
    i swing both ways. moved from a c# shop to a vb.net one. i personally like c# better. but i would question whether or not c# runs any faster. they both run on the same framwork and you can do anything in either language... including writing crappy code. the idea is to make any language run on the clr -- the same. anyway, i like c#'s terseness and similarity to other familiar languages (to me, at least).

    i think it is best to learn all the clr languages you can. why not?

    look for enhancements to vb.net with the whidbey release. it's becoming even more c#-like. and it is of course (even now) fully OO and strongly typed.

    option strict! ;)
    • Re: VB.NET VS C#

      Fri, May 21, 2004 - 2:05 AM
      C# does not run any faster. In the end, VB.NET and C# are compiled into the same intermediate language. The only diff between the two languages is syntax and a few constructs (like operators, which don't exist in VB.NET).
      • Re: VB.NET VS C#

        Sat, May 22, 2004 - 5:53 AM
        Randy,

        I have to disagree. I've been writing both VB and C# codes for close to 3 years now. True the IL code is the target for both compilers, but the actual IL code instructions are different. VB puts out MORE IL codes because VB isn't as type strict as C# so more stuff has to be put out to ensure runtime safety. You can find a study of this here:
        www.nycdotnetdev.com/EventDetail.aspx

        From a utilitarian standpoint, I write VB codes when I automate Excel because VB supports optional params and Office object models are awfully long. Also VB supports late binding to COM objects so I don't have to worry (much of the time) which version of Excel users have. This is a difficult proposition in C#. Otherwise, I like C# because it has fewer bugs, e.g., auto gen assembly version, and more features that I use on the server side, e.g., lock, using, ternary operator, etc.

        Regards,
        Paul
        • Re: VB.NET VS C#

          Thu, May 27, 2004 - 10:50 AM
          Let me clarify, yes C# can be 0-6% faster than VB.NET, as per the study. I don't think that's significant enough to affect any decision to use C# or VB.NET. If it is, then I suggest using C++ instead.

Recent topics in ".NET groupies"

Topic Author Replies Last Post
should definately wear these ones :-P entragan 0 October 31, 2006
ASP.NET vikram 0 October 6, 2006
.Net JOBS in SF w/ Sequoia-backed startup Sneak-E 0 September 18, 2006
New Tribe (Web Developing) Brad 1 April 24, 2006