Results 1 to 6 of 6

Thread: VB vs C#

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    739

    VB vs C#

    Please ignore the differences during development - ie differences in language, syntax etc. I don't want to discuss anything like pros and cons of the actual programming languages. I'm not interested in how easy or difficult a language is.

    I'm only interested in the finished "compiled" application.

    Are compiled VB/V# applications bigger/smaller, faster/slower - more/less dependencies - easier/harder to deploy ?

    Anything else ? (but please don't discuss the languages)

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: VB vs C#

    All .NET languages compile to MSIL, so you could create the same application in VB, C#, C++/CLI, Delphi or any other .NET language and the result will be pretty much exactly the same. There will be minor differences but nothing significant. That's one of the main pillars of the .NET platform.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    739

    Re: VB vs C#

    Thank you - that's the information I was looking for. (But not what I wanted to hear)

    What you're saying then is that the choice of language is down to personal preference. The 'End Result' will be the same so use whichever language you feel most comfortable with.

  4. #4
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,657

    Re: VB vs C#

    Thank you - that's the information I was looking for. (But not what I wanted to hear)
    Out of interest why not ?

    What you're saying then is that the choice of language is down to personal preference. The 'End Result' will be the same so use whichever language you feel most comfortable with.
    Exactly, normally those who come from a vb background move onto VB.Net and those from a C / C++ background move towards C#. Although i personally have moved from VB to C#

    The other thing that has swayed some peoples decision on which language to use is the job market, with some companies seeming to value C# developers more than VB.Net developers.
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB vs C#

    "the choice of language is down to personal preference" -- yup pretty much... with VS2010, the lines between the two languages has blurred even more. Currently within a single solution (not project, but solution) you can mix an match your language... so in a solution, you might have a project written in C#, while another could be written in VB.NET.... the plan is to some day, allow developers to mix and match their languages within the SAME PROJECT. So your front end (UI) could be done in Vb.NET, while the code behind it with the event handlers could be in C#. If I remember right, it would be at the file level, so in theory, with partial classes, you could have half your class in C# and the other half in VB.NET.

    At any rate, what's been stated before is correct, since both languages compile down to MSIL, there is virtually not discernible difference in performance between the two.

    "(But not what I wanted to hear)" -- What did you want to hear?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: VB vs C#

    Just out of curiosity, where does C++.NET come into it? I assume that compiles down to the same MSIL as VB and C# but whenever anyone talks about .NET they always just mention VB and C# - does anyone actually use C++.NET? Every C++ example I see on the internet seems to be for 'old' unmanaged C++...
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width