Results 1 to 15 of 15

Thread: c# versus vb

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    c# versus vb

    currently, i'd say that i'm much more familiar with vb.net than c#.net. I am trying to decide whether to start using c# more often or just stick and learn even more about vb.net. Could you guys tell me the advantage of c# over vb? So far, to me...they seem the same except for the syntax and key words.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: c# versus vb

    Pretty much summs it up. For the most part, people's advise in this area is to tackle VB first, then move to C# at a later time. For what ever reason it's easier that way.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: c# versus vb

    Hi,

    I use both, and I would personally learn C# first of all.

    This is due to the case sensetivity in C# and its strictness is similar to Pascal, so it would inevitably teach you better hadits that VB will as vb is not case sensetive, a little more laxed and flexible in its rulea dn boundaries of acceptable programming.

    my 10p

    ta

    kai
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: c# versus vb

    Here's my advice: if there is something that you want to do that is easy in C# but not in VB.NET then you should consider switching. Otherwise, why bother? That's like saying "my car's fine but other people are driving that car so maybe I should sell mine and get one of those." If you want to learn C# to expand your horizons then I'd say that that's great and you should go for it. Other than that, there is no reason to move to C# unless you are finding that VB.NET is limiting you in some way. There are pluses and minuses on both sides, but the most obvious reason for switching that I can see is that C# makes the use of pointers much easier than VB.NET. The vast majority of applications don't require the use of pointers though, so that's not a compelling reason for most. C# also has operator overloading, but VB.NET gets that in 2.0 anyway.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: c# versus vb

    Hi,

    very true... but a bit small minded on that one but agreeable. When learning aprogramming language though you really should lok a the bigger picture. they all complete and fill ageneric void just the saem, but others do it in dirfference roads and roundabouts ( in a car sense...)

    But if youve learned a programming language such as VB in most cases, you should stick to VB. BUT

    if yo wnt to get serious in your programming, get strict and define and introduce standards in your work suhch as I did when learning Pascal as this was a very strinct language indeed.

    so is C# so if your a serious programmer, wanting good standards and dont mind learning a lot and spenidn quality time in the drawing board, C#.

    If you want ease of use. VB.NET
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: c# versus vb

    More of a general discussion topic than a code specific topic. Moved to General Developer.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: c# versus vb

    Advantages of C#, well. How about we list the disadvantages of VB in comparison instead?

    - Weird, archaic syntax. BASIC dragged into the OOP world. Does not work for me.
    - Unable to create unsafe/unchecked code.
    - No syntax for operations such as casting/dereferncing. Relies on functions.
    - Less operators than C#. In particular, no conditional operator.
    - For reasons unknown, still includes the mother of all program breakers, On Error Resume Next/GoTo.

    A good comparison of syntax here.

    Anyway, my biggest gripe is that it is an ancient language that Microsoft has tried to turn into C#. I see no reason why not to use C# itself instead

  8. #8
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479

    Re: c# versus vb

    No operator overloading (I think)

  9. #9
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: c# versus vb

    Not before .NET 2, anyway.

  10. #10
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: c# versus vb

    the main difference i see is that C# was the first language to be "designed for .NET", while vb/c++/java were all "converted" to .NET.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  11. #11
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: c# versus vb

    Enjoy the ; key.

    There is little real difference where it matters. What matters to the end user is how it looks on the outside, and how it behaves. What is going on inside that pretty package is not something that most people dwell on until something goes wrong.

    Hmmmmmm......ya know? That's how men see women, and vice versa!

    But back to the topic. Most of the objections to VB here are more preference than substance. Penagates views are very real, but are not reasons to choose one language over another UNLESS you happen to share those views. None of them are significant to me, so I would never choose C# over VB for those reasons.

    kaihirst points out the case sensitivity of C# as being a benefit. I find it to be a particularly annoying deficiency. You could have two variables i and I and they would be different things though they would have the same name. The only way to communicate on this (if you were foolish enough as to actually DO that), would be in writing. Someone would have to SEE the variable to know which one you are talking about. Furthermore, I use the case correction to my advantage. Add a capital letter somewhere in the variable name (different locations in different circumstances for me). Then, when you use the variable, if the capitalization is not corrected, you have the wrong variable. I find this useful when I have come back to some code after a sufficient abscence. Very trivial, I admit, but a slight edge in my opinion.
    My usual boring signature: Nothing

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    Re: c# versus vb

    Other than the ones discussed here, such as operator overloading, etc...are there other things that vb.net can do that c#.net cant and vice versa? For instance, i've heard(and I may be wrong on this) that when making web application or web services...people use c#, why is that?

  13. #13
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: c# versus vb

    This seems related to this thread...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  14. #14
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: c# versus vb

    And this also...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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

    Re: c# versus vb

    Like other views, use the right tool for the job. If your looking to increase your skills for job hunting I'd suggest C# as its hot right now but things always change. It comes down to what your needs and reasons are.
    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

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