VB.NET or C#

  • Thread starter Thread starter Henke
  • Start date Start date
H

Henke

Hi!
If I should start from scratch learning a .NET language, which should I
choose, VB or C#?
I should use for developing component based Windows and Web applications,
UI, Web service and so on.

Thanks
 
I think you should use C#...ouput is almost the same but the language is
better for OOP. In C# there are some features that misses in VB.NET, like
operators overloading for example. If you have already programmed in C/C++
you can take many advantages of using the same set of keywords!

Hope this will help you in your choice

Sebastiano
 
Thanks Sebastiano!

Isn't there any advantages in VB.NET?

I looked at a Web project both in C# and VB.NET, one thing I saw was I
couldn't see any events in the property dialog in the VB-project. If I had a
button on a web page I could just selected it and look at all events on the
property dialog, in the C#-project that is.

/Henke
 
There aren't special advantages to develop with VB.NET...so begin to write
in C#, I'm sure you won't come back to VB.

Bye

Sebastiano
 
What is your background? VB? C++? Java? If VB, then the learning curve
will be shorter with VB.NET. With the others, C#. The steepest part of
the curve is finding your way around the base class libraries. Once
you've done that in one of the languages, picking up the other is just
not that big a deal. FWIW, if you decide on VB.NET, you'll need to
learn a certain amount of C# anyway, just in order to survive. And if
you ever intend doing interop with COM apps like Office, then VB.NET
is a better choice. IMO learning both is the best long-term strategy.

-- Mary
MCW Technologies
http://www.mcwtech.com
 
I would vote for VB:

From Gary Cornell and Jonathan Morrison:
"Programming VB.NET: A guide for experienced programmers"

1) Inclusion af many familiar VB/VBScribt functions
2) Readabillity
3) Background compilation
4) Case insensitive and has a smart editor
5) 99% of the potential users will never use the wee bit more powerfull C#

But I think the product .NET as a whole has a lot of pittfalls to
be aware of - I think I've tried the most of them with VB.NET !

KS, Denmark
 
Hi Henke,

Did you do a lot with classic ASP vb script
VB.net
Did you do a lot with Javascript
C#

Advantages of C#
Operator overloading (If you are new you will maybe use that in about
2years)
Comments (If you are new you will use that over about 1 years)
Unsafe code (If you are new you maybe will use that over about 3 years)
(You can do more when you go deeper to the computer itself)
Advantages of VB.Net
A wider code set (But there is seldom a need to use it)

And then a lot of subjective things as case sensetive, operators, etc.

In performance (except with unsafe code) no difference

my 2 eurocents
Cor
 
Thanks for your answer. But I wonder how Gary and Jonathan can say that case
insensitive is a advantage, sometimes you would like to have a constant in
captial letters and a variable in lower case. As far as I know C# has a
smart editor too...

/Henke

How can he say
 
Hi Henke,
Thanks for your answer. But I wonder how Gary and Jonathan can say that case
insensitive is a advantage, sometimes you would like to have a constant in
captial letters and a variable in lower case. As far as I know C# has a
smart editor too...

If you saying that your choise can only be C#

It sound exact as a some newbie people who use C# discuss with people who
use VB.net
You will be probably be very happy with C#

Cor
 
Yes I use C#, no I'm not a newbie. I asked because I'm not good at VB and
wanted to hear the advantages and disadvantages about the two languages.
Since we are employing new people to our company it would be appriciated to
hear what you (the experts) think.

I thought there were bigger differencies than case sensitivity in the
editor.
But you got a point with overloading operators though...
/Henke
 
Hi Henke,
Yes I use C#, no I'm not a newbie. I asked because I'm not good at VB and
wanted to hear the advantages and disadvantages about the two languages.
Since we are employing new people to our company it would be appriciated to
hear what you (the experts) think.

I thought there were bigger differencies than case sensitivity in the
editor.
But you got a point with overloading operators though...

This is often told in the languages newsgroup.
A good VB.net programmer can learn C# in 2 weeks and visa versa.

VB.net is not case sensitive but when you declare something the IDE keeps it
in the proper case.
(I know that I am not the only one who finds your way of using the cases bad
programming practise)

The languages newsgroups would have been a better place for this question
and than telling what you are telling now to get a clear opinion; for the
regular ones in those newsgroups there is not a better or worse.

By the way, In the next version VB.net has also operator overloading and
comments.

Cor
 
Back
Top