Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: C# or VB.NET

  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Tulsa, OK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    C# or VB.NET

    I read alot a places that it doesn't matter which you choose to learn, C# or VB.NET but most of those deal with people already familiar with C++ or VB6... I have always leaned toward VB6 in the past for any of the small projects I did, mostly beacuse of its simplicity and it coincided with VBScript which I use in my ASP pages. The problem is that I don't really 'know' VB6 or C++ well just enough to scratch by. Now with the new .NET languages I want to fully learn one and I'm not sure which. Should I stick with VB.NET because I will also be doing a lot with ASP.NET or can you also write ASP.NET pages with C#. Please help, I need to choose one to learn so that I can start in on it. I'd apprecaite opinions from both the C and VB enthusiasts.

    -Joshua David

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    They both inherit the same classes. After developing .net for a while and reading tons of articles you will be able to read either language because both use the same classes,methods,properties, ect. I prefer to use vb.net because well it is what I have to program in(work). I would concentrate on learning the Classes and not be worried with a particular language. I would also learn about how the .net framework works too.You can write your asp.net pages with either c# or vb.net, and you can create your classes in almost any laguage. I am not sure if I answered your question so I guess since you are familiar with some vb and go with vb.net.

  • #3
    New Coder
    Join Date
    Aug 2002
    Location
    Tulsa, OK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it does help thank you. Where can I get information to read about the .NET framework and classes. or should I just read through MSDN?

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    msdn is the only place to go for a complete .net reference(Click on Classes in my previous post). There are some decent asp.net articles around but I could not reccomend one particular site. Most of the sites assume we have all developed asp.net for years and do not explain why things are done a certain way(4guysfromrolla.com is an exception). So my 2 favorite .net references are msdn and google.

  • #5
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    If you have a choice between C# and VB, learn C#. VB is a terrible language. Terrible. C# on the other hand is a lot like Java - which is a well designed language. Plus, it has some nice things that Java doesn't, making it a very nice language.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I do not believe vb is a built in language for .net. The only built in languages are c#,vb.net, and jscript.net(?). VB.net is not vb. But if one would still like to use some of the great features from vb you could always inherit the Microsoft.VisualBasic class and use all the great things that vb had to offer.

  • #7
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jkd View Post
    If you have a choice between C# and VB, learn C#. VB is a terrible language. Terrible. C# on the other hand is a lot like Java - which is a well designed language. Plus, it has some nice things that Java doesn't, making it a very nice language.
    I have been coding with both C# and VB.NET for quite some time and have reached the conclusion that VB is the best choice.
    - VB has better readbility, and is more difficult to write obfuscated/bad code
    - There are several tasks I have found in my professional experience that CANNOT be done in C#, e.g. dealing with COM/ActiveX components that do not have good type libraries, and thus the need to use late binding:

    e.g.
    objComponent = Server.CreateObject("Some.COMComponent")
    objComponent.Property.Method("Blah")

    The only way to get close to this with C# is with half a page of Reflection code .. and even then using Type.InvokeMethod only works for first level properties and methods. Anything deeper than 1 level and you get Object types and your screwed.

    If you seriousy need the versatility to do all kinds of things then VB is the language to use.

    Good luck!

    Cheers,
    James Boman.

  • #8
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have been using vb6, vb.net & then c# for more than 5 years.
    my advice:

    1) Use vb6 where u will code in quick & dirty style. this allow u create small program very fast. Besides, currently client side vbscript & micro only supported in Vb6 syntax.

    2) Use C# for entreprise level program. U can find good reference books for topic such as domain driven, test driven, architecture pattern, agile development & design pattern in C#. C# culture focus on object-oriented programming.

    3) Use vb.net when u have no other choice.

  • #9
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Quote Originally Posted by jkd View Post
    If you have a choice between C# and VB, learn C#. VB is a terrible language. Terrible. C# on the other hand is a lot like Java - which is a well designed language. Plus, it has some nice things that Java doesn't, making it a very nice language.
    Exactly the same reasons for me. I'd go with C#. Doesn't really matter which one you choose though.
    I'm more curious if VB.NET supports dirty code for C/C++ like C# does.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •