Aside from speed (I've heard C# is faster than VB.Net), what are the other mitigating factors that would encourage one to learn C# over VB.Net?
Printable View
Aside from speed (I've heard C# is faster than VB.Net), what are the other mitigating factors that would encourage one to learn C# over VB.Net?
not again!!!!
yes, again... :)
OK, I'll just give you my 2 cents:
before you worry about which is better to use, make sure you know what the Framework is all about. What is the FCL, CLR, CTS, GC, blah blah blah.
Then dig into some MSIL, just do it!
THEN see if you still have a problem deciding which is best yourself. Ask that question here, and you just start a mud-fight.
I choose C#. Only because I allready used VB for some time, and it will be easier to move from C# (syntax wise) to C++ and Java. So my motivation is all about creating a path to enable me to learn some new stuff.
I'm going to unsubscribe from this thread now...I allready know what is coming... :rolleyes:
Actually I prefer VB.Net over C# because I came from VB6.0 though I have experience with C/C++ also which I think is somewhat similar to the syntax of C#... What annoys me at times are when I read in newspapers that some company's prefer programmers with C# knowledge rather than VB.Net... :(
And to think that they are just both compiled in the same MSIL...
well, imagine you are the boss, and knows little about these stuff, and you hear how great .Net is and that C# is specifically created for the .Net. Who you gonna hire?
Reasons:
- It is a tiny bit faster in some areas.
- C# is MS flag ship. It gets the newest feautures the first.
- It has C syntax, (this can both be good and bad)
- C# programmers are in general (or at least used to) be paid more.
- It is MS prefered language.
ANd probably some other reasons.
But then again. Someone that loves VB.NET can probably write a just as long list on why to use VB.NET in stead of C#. So in the end...it doesn't matter what I think. And an other thing. If you first know C#, then you more or less know VB.NET too. It is just a few syntax changes, and some limitations and you are there. No big deal. So go with the language you feel most comfortable with, or the language your teacher or boss says you should learn, and it all should end in a good way for you too..
- ØØ -
Quote:
Originally Posted by dee-u
On the inside C# is more like VB.NET then C++....
- ØØ -
-Tiny bit? Is it tiny enough to be negligible? Is VB.Net a tiny bit faster in some areas also?Quote:
Originally Posted by NoteMe
-Never learned about it but why is C# the MS Flag Ship?
-What if it has C Syntax?
-Why is it if VB.Net programmers could also do what C# programmers can do?
-Why is it the MS preferred language?
Thanks for taking time... :)
Quote:
Originally Posted by dee-u
Yes, in most cases it is. Non of those languages are buildt for speed anyway.
It is their prefeared language. A lot of their tools and so on are buildt using C# these days. It is an easy to use language, and you get results very fast.Quote:
Originally Posted by dee-u
? C# has C syntax...what do you mean..Quote:
Originally Posted by dee-u
What do you mean? They can and they can't. Both languages are buildt on the .NET framework. And in some way or an other a VB.NET programmer can do what a C# programmer can do, even if it doesn't have all the same language feautures.Quote:
Originally Posted by dee-u
All ready answered.Quote:
Originally Posted by dee-u
- ØØ -
I thought C was more difficult to learn than VB then why is C# an easy language?Quote:
Originally Posted by NoteMe
You listed it as a reason on why one would rather choose C# over VB.Net hence I am asking what's the significance if it has C Syntax? :)Quote:
Originally Posted by NoteMe
Are there any things that C# programmers can do that VB.Net can't do? If none then why are they being paid more? :(Quote:
Originally Posted by NoteMe
Yeah C is more difficult, but don't confuse C with C#. THe only thing they have in common is the C look alike syntax.Quote:
Originally Posted by dee-u
Some like C syntax some like Basic syntax. I like C syntax, hence I wrtoe it up. Hence my comment behind that line too. Read it again.Quote:
Originally Posted by dee-u
[/QUOTE]Quote:
Originally Posted by dee-u
Thats a long storry (that doesn't have a 100% answer). You can read about it here if you have the time:
http://www.fawcette.com/vsm/2003_07/...tments/ednote/
- ØØ -
C# is better because...
* On average C# is around 2% faster than VB.Net (from my own benchmarking experience).
* You can use pointers :D (Major bonus imho)
* its more strict than VB.net (even with VB's Option Strict On)
* It looks nicer (:D) and there are better looping and parameter semantics.
If speed is important then you can really make C# a lot faster than the nearest VB.net version, pointers are a great optimisation feature.
learn them all!
...oh hell, what am I doing here??????
Quote:
Originally Posted by StrangerInBeijing
Hehheehe...true though. But that was kind of my point too. If you know one you know them all.
- ØØ -
Heck, I don't know why I am doing this... :eek2:
Read this (quite good) forum discussion on the differences between C# and VB, and why C# is prefered
Also, attached is the whitepaper for differences between the two languages.
Hack, give me 100 extra points for even considering to reply again to one of these! My ego, my ego! :D
Thanks people for taking time... Just want to ask this 'last' question: Is C# always faster than VB.Net (2003 and 2005 versions)? And in what areas does it out-speed VB.Net? Let's say if I write an app in C# does it necessarily mean than the app is faster compared to its equivalent made in VB.Net (with all the optimizations in both versions)? :)
Speed is not factor. Knowing both is benificial to you. Once you get past the syntax they are basically the same. I know both but I prefer C#. VB is too wordy and when you I'm reading someone else's code it can become very tedious. Its like reading a book. :D