We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

whats the difference...

...between VB.Net and C#.Net

Comments

  • h4nym
    h4nym Posts: 140 Forumite
    Plenty! Forget the .Net element - that effectively just says that they both use the .Net runtime library when they come to run.

    VB is a much simpler language to learn - it's much more human and doesn't need loads of curly brackets in the right place etc.

    C# is more difficult to learn and, equally importantly, to read when you're trying to understand the code for debugging.

    C# is, however, more powerful in that there's a lot you can do at a low level, whereas if you want to do the thing in VB you'll have to rely much more on interfaces already defined in Windows. For example, with C# you can access and manipulate data in memory directly, whereas with VB you simply cant - you have to rely on Windows to manage that whole piece for you.

    Essentially, if you're starting out, then VB is far and away the most appropriate tool. When you're applications are very sophisticated / powerful / graphics intensive, then you can consider moving off to C# for the extra functionality. The key difference at runtime is speed - code written in C# is quicker to execute, but this is easily masked by throwing more hardware at it - a faster CPU, quicker/more RAM etc.

    Alternatively - here's my real-world advice - and I head up an IT company with a significant revenue from our own software. Every single application we write starts life in VB - even if only to prototype. Only when absolutely necessary do we shuffle it off to C#

    C# takes 3 times longer to write than VB, and runs about 20% quicker... you do the maths!

    hth

    Hany
  • thewizard
    thewizard Posts: 659 Forumite
    Thanks, I have been taught VB6 in school and was wondering which was the best way to go next.
    Heres another question.
    Are people who program C# higher paid?
  • Astaroth
    Astaroth Posts: 5,444 Forumite
    I wouldnt say they are paid any higher... the amount of skilled programmers in both VB and C# is approximately equal so there is no supply and demand forces causing one to get significantly higher salaries than the other.
    All posts made are simply my own opinions and are neither professional advice nor the opinions of my employers
    No Advertising or Links in Signatures by Site Rules - MSE Forum Team 2
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.5K Banking & Borrowing
  • 253.7K Reduce Debt & Boost Income
  • 454.5K Spending & Discounts
  • 245.5K Work, Benefits & Business
  • 601.5K Mortgages, Homes & Bills
  • 177.6K Life & Family
  • 259.5K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.