c# vs vb.net (Discussion)

milooot

Junior Member
Joined
Jan 4, 2012
Messages
164
Reaction score
34
okay i browsed the whole programming forum of bhw and saw lot of threads of versus this versus that.
seems that most preferred languages here on bhw are c# , python and delphi, mainly because they are good for bots.

anyway i couldnt find a thread where c# and vb.net are covered i saw lot replies that vb.net is very similar to c# , i tried both and seems that vb.net is little bit easier to learn and understand.

but why is c# more preferred than vb.net or am i wrong.
what speaks for vb.net and what for c#.

also if you think there's a better language than both please comment with your reason ( i know theres no perfect language , perfect is what your suits but there should be a language that is easier, faster and can do lot of tasks)
 
also im trying a visual studio alternative sharpdevelop seems good till now, its more lite weight probably i'd suggest it for starters like me
 
so i can do the same things with both languages ??
 
why would you suggest c# over vb.net ??
 
C# for sure since most systems developed by Microsoft these days are in first hand targeted by C#. Except of that what I hate about vb is that they aren't using brackets.
 
They both compile to the same intermediate language and use the same framework. So for all intents and purposes, they are the same.

However..

The C# compiler/language has some optimizations which means it gets compiled into more efficient IL than it's VB.net counterpart. C# also has some useful lower level stuff in there such as pointers.
 
They both compile to the same intermediate language and use the same framework. So for all intents and purposes, they are the same.

However..

The C# compiler/language has some optimizations which means it gets compiled into more efficient IL than it's VB net counterpart. C# also has some useful lower level stuff in there such as pointers.

This is all true, thought in the beginning when NET 4 launched with C# it was not very mature, most companies then used the VB NET as it was more mature. But now C# has reached that same level and some will even say surpassed it when you figure in the optimization techniques. It is mainly there so people can code in what they are more comfortable with, I will say learning C++ first then going to VB NET made the transition hard as sometimes it wouldn't do things the way I intended and some of the syntax was very picky when working with the standard object libraries where these problems did not exist in C# versions I wrote.

Sorry there are no .'s in front of NET the automated system flags me as breaking the rules when I do that...
 
Both languages has some differences (bot it is case for more advanced developers), in terms of developing software both languages are pretty same, only difference will be syntax and support...

I would suggest you to go with C#, more books, more support, more users, a little bit more jobs... VB I guess may be easier to learn if this is your first language (easier syntax, my first language were Delphi then Assembler (nightmare) and VB on my University (no C#))...
 
Back
Top