1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

c# vs vb.net (Discussion)

Discussion in 'General Programming Chat' started by milooot, Apr 14, 2013.

  1. milooot

    milooot Junior Member

    Joined:
    Jan 4, 2012
    Messages:
    164
    Likes Received:
    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)
     
  2. milooot

    milooot Junior Member

    Joined:
    Jan 4, 2012
    Messages:
    164
    Likes Received:
    34
    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
     
  3. capripio

    capripio Regular Member

    Joined:
    Dec 25, 2010
    Messages:
    249
    Likes Received:
    157
    both are same! except there syntax!
     
  4. milooot

    milooot Junior Member

    Joined:
    Jan 4, 2012
    Messages:
    164
    Likes Received:
    34
    so i can do the same things with both languages ??
     
  5. capripio

    capripio Regular Member

    Joined:
    Dec 25, 2010
    Messages:
    249
    Likes Received:
    157
    Yes, off course any you do in C# you can also do it in VB but I suggest to go with C#
     
  6. milooot

    milooot Junior Member

    Joined:
    Jan 4, 2012
    Messages:
    164
    Likes Received:
    34
    why would you suggest c# over vb.net ??
     
  7. parek

    parek Newbie

    Joined:
    Dec 28, 2012
    Messages:
    30
    Likes Received:
    6
    Location:
    Sweden
    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.
     
  8. capripio

    capripio Regular Member

    Joined:
    Dec 25, 2010
    Messages:
    249
    Likes Received:
    157
    Well VB is losing value, And Sooner in Future Microsoft Disconnected VB!
     
  9. capripio

    capripio Regular Member

    Joined:
    Dec 25, 2010
    Messages:
    249
    Likes Received:
    157
    And I am agree with Parek aswell!
     
  10. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,061
    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.
     
  11. MaximusNeo

    MaximusNeo Newbie

    Joined:
    Apr 17, 2013
    Messages:
    16
    Likes Received:
    2
    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...
     
  12. FireSoftLimited

    FireSoftLimited Junior Member

    Joined:
    Apr 27, 2013
    Messages:
    119
    Likes Received:
    25
    Location:
    Google UK
    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#))...