Results 1 to 20 of 20

Thread: [RESOLVED] To C# or to VB.NET that is the question?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2008
    Location
    Bayang Magiliw, Perlas Ng Silangan
    Posts
    100

    Resolved [RESOLVED] To C# or to VB.NET that is the question?

    learning a new language what would it be? To C# or to VB.NET that is the question? What are the advantages of c# vs vb.net and vice versa.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: To C# or to VB.NET that is the question?

    been asked a lot before and basically there are a couple of things that C# can do that VB cant but then VB is a bit easier to learn due to its more readable syntax (at least I think so anyway). At the end of the day though they are both extremely similar in what they can actually do - however there are a lot more jobs available for C#.NET programmers than there are for VB.NET so if you are planning to make a career out of it I would say go for C# personally...
    If you want more info on the specific differences just google "differences between c#.net and vb.net" or something similar
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: To C# or to VB.NET that is the question?

    Hey,

    Personally, I would suggest that you learn the .Net Framework. The classes, the methods, the properties, the design patterns. Once you understand that, it is a simple matter of syntax. There are plenty of converters that will help you change from one language to the other, the difficulty is knowing "what" you want to do, and that comes from knowing the Framework.

    Just my opinion.

    Gary

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: To C# or to VB.NET that is the question?

    We have many threads in this forum on comparisons etc so if you want some content, plenty to read there.

    But to directly answer your question, the previous posts are spot on, especially Garys since both languages use the .net framework. If you are looking to get into this as a career then lean towards C# but dont shut out anything else.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: To C# or to VB.NET that is the question?

    but surely to learn the .NET framework you have to actually pick a language to learn it in really... I mean its all very well reading books and looking at examples in either language but in reality you are not going to learn much without writing some code yourself and seeing what works and what doesnt - which you cant do without deciding which language you are going to write it in. I'm not saying the language you pick at that point has to be the one you learn and stick with, but it is quite likely that you will want to use that one for a while as you will be comfortable with its syntax and limitations.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  6. #6
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: To C# or to VB.NET that is the question?


  7. #7
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: To C# or to VB.NET that is the question?

    And just to further my position, you should know both, simply because the framework is what matters and there are more prospects in being a .net dev than a C# or VB one.

    *picks back up his F# book*

  8. #8
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: To C# or to VB.NET that is the question?

    Quote Originally Posted by nubie View Post
    learning a new language what would it be? To C# or to VB.NET that is the question? What are the advantages of c# vs vb.net and vice versa.
    What's your back ground? have you had experience with c/c++/java/python/etc then c# will be much easier for you to pick up. If you're coming from some sort of vb background or are new to programming then vb.net would probably be easier for you.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: To C# or to VB.NET that is the question?

    Quote Originally Posted by chris128 View Post
    but surely to learn the .NET framework you have to actually pick a language to learn it in really... I mean its all very well reading books and looking at examples in either language but in reality you are not going to learn much without writing some code yourself and seeing what works and what doesnt - which you cant do without deciding which language you are going to write it in. I'm not saying the language you pick at that point has to be the one you learn and stick with, but it is quite likely that you will want to use that one for a while as you will be comfortable with its syntax and limitations.
    The point that I was trying to make was this. Let's say for example you wanted to create a new XML Document in your code. You don't start out thinking now how to I code that, you say, what classes in the .Net Framework should I be using. Then you go and look at the documentation, and you find the XmlDocument class, and you read up about it's properties, it's methods, events etc.

    The difference then becomes:

    Code:
    Dim xmlDoc As New XmlDocument
    or

    Code:
    XmlDocument xmlDoc = new XmlDocument
    Obviously, the OP will favour a particular language syntax, either they will love or hate {}'s and semi-colons. However, I would recommend that they need to become familiar with both languages, to the point that they would be able to read/code in both.

    Gary

  10. #10
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: To C# or to VB.NET that is the question?

    Well, I heard today that my school phased out teaching vb.net at the end of last year in favor of c#. It is frustrating because vb.net is a subject I wanted to learn but I was told by another student that the school phased it out because business here (in Adelaide) prefer to use c# rather than vb.net.

    Edit:

    I have never used c# or c++ before I used to program in VB6.0.
    Last edited by Nightwalker83; Feb 8th, 2010 at 04:50 AM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  11. #11
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: To C# or to VB.NET that is the question?

    Hey,

    As I mentioned though, don't like at it like this. It isn't that black ahd white. Known of the work that you have done in VB.Net is going to be lost, it will be fully transferable, as almost everything will have an equivalent. If anything, I would see this as a benefit, as you will be able to converse happily in both languages.

    Gary

  12. #12
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: To C# or to VB.NET that is the question?

    Quote Originally Posted by Nightwalker83 View Post
    Well, I heard today that my school phased out teaching vb.net at the end of last year in favor of c#. It is frustrating because vb.net is a subject I wanted to learn but I was told by another student that the school phased it out because business here (in Adelaide) prefer to use c# rather than vb.net.

    Edit:

    I have never used c# or c++ before I used to program in VB6.0.
    Its the same around here, I'm a Contract Developer and I know both Vb.NET and C# - Last time I wrote a line of VB.Net was about 2 years ago, because no-one seems to use it around here (Or a very small percentage). However (In the last week) I've been asked to debug an error with a VB.Net application (For a small company) and I get around it fine.

    As said above knowing the framework is key.

    Pino

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Jun 2008
    Location
    Bayang Magiliw, Perlas Ng Silangan
    Posts
    100

    Re: To C# or to VB.NET that is the question?

    Thank you all for your insightful comments and suggestions.

  14. #14
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] To C# or to VB.NET that is the question?

    Hey,

    Out of interest, what have you decided to do?

    Gary

  15. #15
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: [RESOLVED] To C# or to VB.NET that is the question?

    Neither
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  16. #16
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: To C# or to VB.NET that is the question?

    Quote Originally Posted by Pino View Post
    Its the same around here, I'm a Contract Developer and I know both Vb.NET and C# - Last time I wrote a line of VB.Net was about 2 years ago, because no-one seems to use it around here (Or a very small percentage). However (In the last week) I've been asked to debug an error with a VB.Net application (For a small company) and I get around it fine.
    Yeah, at least I will be taught a bit more about c# from someone who has experience programming with it. Back when I was doing vb6.0 I was self taught and I didn't really follow what was happening.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  17. #17
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] To C# or to VB.NET that is the question?

    Quote Originally Posted by chris128 View Post
    Neither
    Let's hope not!! Wasn't trying to put the OP off.

  18. #18

    Thread Starter
    Lively Member
    Join Date
    Jun 2008
    Location
    Bayang Magiliw, Perlas Ng Silangan
    Posts
    100

    Re: [RESOLVED] To C# or to VB.NET that is the question?

    Code:
    Hey,
    
    Out of interest, what have you decided to do?
    ...downloading c# ebooks.

  19. #19
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: [RESOLVED] To C# or to VB.NET that is the question?

    Quote Originally Posted by nubie View Post
    Code:
    Hey,
    
    Out of interest, what have you decided to do?
    ...downloading c# ebooks.

    Good Choice :-D

  20. #20
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] To C# or to VB.NET that is the question?

    Quote Originally Posted by Pino View Post
    Good Choice :-D
    Agreed

Posting Permissions

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



Click Here to Expand Forum to Full Width