Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. 10 Reasons Why Visual Basic is Better Than C#

10 Reasons Why Visual Basic is Better Than C#

Scheduled Pinned Locked Moved The Lounge
csharpcomquestion
143 Posts 57 Posters 127 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R realJSOP

    Nelek wrote:

    For sure can find anything capable to hit you though

    I have ammo that will go completely through a piece of 1/4-inch steel. How it does on body armor has not yet been tested, but like I told someone else a few minutes ago, "it may not penetrate, but it *will* knock you down and make you scream for your mommy".

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

    V Offline
    V Offline
    Vivi Chellappa
    wrote on last edited by
    #38

    John Simmons / outlaw programmer wrote:

    "it may not penetrate, but it *will* knock you down and make you scream for your mommy".

    What exactly are you talking about here? ;P

    1 Reply Last reply
    0
    • J Jorgen Andersson

      Here[^] Now, where was that bulletproof vest? <Takes cover under a fireproof blanket> A bulletproof vest can take at least one 45ACP, right?

      Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #39

      I am about to go up in front of a bunch of VB developers and explain why the company standard is C# and why they need to change their language. The primary reasons for the change have NOTHING to do with any of the points made by this author.

      Never underestimate the power of human stupidity RAH

      C 1 Reply Last reply
      0
      • C Clifford Nelson

        I have to agree with a lot of the issues with C#. The Switch statement is superior, and I also have to agree that good software eliminates Case/Switch statements. However, there is a lot more power in VB version and wish that the C# team would update the Case statement. I also disagree with maintaining the requirement for the break statement. There is no reason to keep it, and it should be eliminated. C# no longer has to deal with expectations of C community. Also, I like the fact that I do not have to worry about case sensitivity in Visual Basic. However I think that this can be resolved in the environment by being able to set a flag to allow the environment to fix case problems. C# does not preclude this since the environment could fix it, and maybe it should. I also like that there is case sensitivity since I can use a variable for a class or property and differentiate it by using low case. In fact the environment (may be fairly easy to implement with Roslyn) can enforce a bunch of naming rules. Of course a few issues are easily fixed by adding extension methods. Yes I think that C# should support them, but it is not really a language issues, it is more of an implementation issue. Yes there are some things like && that are implementation issues, but having the & function also can sometimes be useful. And it is standard with C, Java, etc. Next I will hear the guy asking to replace “+” with “add”. Yes C# could have used the other symbols (caret and reverse caret), but at least they are standard symbols (ever seen APL) I hate the Dim in VB because it no longer is a dimension. Maybe if VB used Def or define instead I might agree. As far as the “;” is concerned, I think that the “_” was worse. The situation has improved, but is it really better? I do agree that sometimes, especially with enumeration, it should not be necessary to specify the entire path. Would be good is C# fixed this. Anyway, VB does not follow other languages as well as C#. C# follows standards created by C and C++.

        V Offline
        V Offline
        Vivi Chellappa
        wrote on last edited by
        #40

        VB is a bit more forgiving and easier to code in than C, C++ or C#. The High Priests of Coding want to keep the Unwashed Masses away from their profession. There is nothing else to the snobbery of the C group toward the VB group.

        C C 2 Replies Last reply
        0
        • L Lost User

          Didn't know VB was a programming language - I though it was used to teach primates.

          V Offline
          V Offline
          Vivi Chellappa
          wrote on last edited by
          #41

          Don't forget that humans are primates too! Of course, in management-speak, you are all code monkeys!

          1 Reply Last reply
          0
          • J Jorgen Andersson

            Here[^] Now, where was that bulletproof vest? <Takes cover under a fireproof blanket> A bulletproof vest can take at least one 45ACP, right?

            Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

            C Offline
            C Offline
            Chris Maunder
            wrote on last edited by
            #42

            You just better hope that JSOP sticks by his "because firing twice is just silly".

            cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

            1 Reply Last reply
            0
            • C Clifford Nelson

              Many people are either gloating or being defensive. I think we can see this as areas that could possibly be used to improve C#, and maybe improving C# over VB. I like that people are talking about how the case statement in C# is optimize for performance when it would be easy enough to optimize if used effieciently. First the compiler should be able to optimize, and second, case statements are a bad small, and use should be limited.

              V Offline
              V Offline
              Vivi Chellappa
              wrote on last edited by
              #43

              Clifford Nelson wrote:

              I like that people are talking about how the case statement in C# is optimize for performance when it would be easy enough to optimize if used effieciently. First the compiler should be able to optimize, and second, case statements are a bad small, and use should be limited.

              And exactly how many picoseconds are we saving by optimization on a 2.4 GHz quad-core PC? PS. Before you are tempted to tell me about the optimization being needed inside loops, I just want you to know that, if you saved one picosecond through optimization, you need to loop a quadrillion times before you save one second!

              1 Reply Last reply
              0
              • J Jorgen Andersson

                Here[^] Now, where was that bulletproof vest? <Takes cover under a fireproof blanket> A bulletproof vest can take at least one 45ACP, right?

                Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

                R Offline
                R Offline
                Roger Wright
                wrote on last edited by
                #44

                The vest won't help... you're going to burn in hell for this, alongside the author's pyre. ;P

                Will Rogers never met me.

                1 Reply Last reply
                0
                • C Clifford Nelson

                  I have to agree with a lot of the issues with C#. The Switch statement is superior, and I also have to agree that good software eliminates Case/Switch statements. However, there is a lot more power in VB version and wish that the C# team would update the Case statement. I also disagree with maintaining the requirement for the break statement. There is no reason to keep it, and it should be eliminated. C# no longer has to deal with expectations of C community. Also, I like the fact that I do not have to worry about case sensitivity in Visual Basic. However I think that this can be resolved in the environment by being able to set a flag to allow the environment to fix case problems. C# does not preclude this since the environment could fix it, and maybe it should. I also like that there is case sensitivity since I can use a variable for a class or property and differentiate it by using low case. In fact the environment (may be fairly easy to implement with Roslyn) can enforce a bunch of naming rules. Of course a few issues are easily fixed by adding extension methods. Yes I think that C# should support them, but it is not really a language issues, it is more of an implementation issue. Yes there are some things like && that are implementation issues, but having the & function also can sometimes be useful. And it is standard with C, Java, etc. Next I will hear the guy asking to replace “+” with “add”. Yes C# could have used the other symbols (caret and reverse caret), but at least they are standard symbols (ever seen APL) I hate the Dim in VB because it no longer is a dimension. Maybe if VB used Def or define instead I might agree. As far as the “;” is concerned, I think that the “_” was worse. The situation has improved, but is it really better? I do agree that sometimes, especially with enumeration, it should not be necessary to specify the entire path. Would be good is C# fixed this. Anyway, VB does not follow other languages as well as C#. C# follows standards created by C and C++.

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #45

                  Clifford Nelson wrote:

                  I also disagree with maintaining the requirement for the break statement. There is no reason to keep it, and it should be eliminated.

                  Hear hear!

                  Clifford Nelson wrote:

                  I think that the “_” was worse

                  Indeed.

                  Clifford Nelson wrote:

                  with enumeration, it should not be necessary to specify the entire path

                  I disagree; I very much prefer to see which enumeration a value belongs to -- particularly when code is posted in a question here.

                  1 Reply Last reply
                  0
                  • J Jorgen Andersson

                    Here[^] Now, where was that bulletproof vest? <Takes cover under a fireproof blanket> A bulletproof vest can take at least one 45ACP, right?

                    Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

                    U Offline
                    U Offline
                    User 8562973
                    wrote on last edited by
                    #46

                    That, dear sir, conforms to lunacy. Seriously? Case sensitivity alone is reason to ditch C#? Ever hear of intellisense? As the other intelligible 'academic' above me pointed out, learning to use your IDE is crucial if you want to be a developer. Personally, I would much rather have an academic write my code than a kindergartner. They tend to think better. Good luck with your VB endeavors. I shall see you when you're done debugging. I shall now end my thoughts of anger with this period.

                    Sander RosselS J 2 Replies Last reply
                    0
                    • Sander RosselS Sander Rossel

                      I love VB as a language. I also completely agree with the IntelliSense thing... C# IntelliSense is a disaster if you're used to VB. For example: Typing VB: Dim ex As ExcepR... Oops, backspace, tab and it's there. Typing C#: ExcepR... Oops, backspace, no IntelliSense window pops up, either four times backspace or Shift + Home + Delete/Backspace. If you're lucky you don't have to switch to a new line to get IntelliSense support again! This becomes really very frustrating when you got code like obj.Property1.Property2.Property3... However, one reason NOT to use VB...

                      Form1.Text = "What the? Since when is Text a Shared/static Property!?"

                      The answer to that question is: Since VB1. And it's still there for 'backwards compatibility' (the compiler does create an instance though) :) So much for Object Orientism. Another one is the default of Option Strict Off. I've seen 'modern' VB code that used the horrible Form1.Text thing and Option Strict Off... You'll never see that in C#. Of course bad code can be written in both languages and with that philosophy in mind I don't really care which language I write. I just slightly prefer VB for IntelliSense and Event Handling in WinForms (that guy is so right about that!) :)

                      It's an OO world.

                      public class Naerling : Lazy<Person>{
                      public void DoWork(){ throw new NotImplementedException(); }
                      }

                      U Offline
                      U Offline
                      User 8562973
                      wrote on last edited by
                      #47

                      Quote:

                      Typing VB: Dim ex As ExcepR... Oops, backspace, tab and it's there. Typing C#: ExcepR... Oops, backspace, no IntelliSense window pops up, either four times backspace or Shift + Home + Delete/Backspace.

                      Try pressing backspace, then CTRL+SPACE.

                      Sander RosselS 1 Reply Last reply
                      0
                      • J Jorgen Andersson

                        Here[^] Now, where was that bulletproof vest? <Takes cover under a fireproof blanket> A bulletproof vest can take at least one 45ACP, right?

                        Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

                        D Offline
                        D Offline
                        dan sh
                        wrote on last edited by
                        #48

                        I hope author was not really serious when he wrote that. I really hope he was being sarcastic. Specially for point 4. I mean why not just make programming same as writing an essay.

                        "The worst code you'll come across is code you wrote last year.", wizardzz[^]

                        J K 2 Replies Last reply
                        0
                        • V Vivi Chellappa

                          VB is a bit more forgiving and easier to code in than C, C++ or C#. The High Priests of Coding want to keep the Unwashed Masses away from their profession. There is nothing else to the snobbery of the C group toward the VB group.

                          C Offline
                          C Offline
                          Clifford Nelson
                          wrote on last edited by
                          #49

                          There is still a large group of programmers using VB6 because VB.Net is precieved to have a much steeper learning curve. I have to agree that VB is not much different than C#, and the effective differences have been narrowed over the last few releases since there has been a lot of effort equalizing the products. There is however, a difference between C# and VB developers in that there tends to be a higher quality of programmers in C#, whether that is because developers in C# tend to come from C++ or some other C based OO language or there are higher expectations, or something else I do not know. I worked in VB6 prior to moving to C# and .NET, and I know about the attitude towards VB developers. I also know that there are some highly respected and significant supporters of VB.

                          1 Reply Last reply
                          0
                          • C Chris Losinger

                            IntelliSense is not a part of either language.

                            image processing toolkits | batch image processing

                            Sander RosselS Offline
                            Sander RosselS Offline
                            Sander Rossel
                            wrote on last edited by
                            #50

                            True, but it's my most used feature of my most used IDE. And this feature works for VB, but doesn't (or at least not good enough to my taste) for C# :)

                            It's an OO world.

                            public class Naerling : Lazy<Person>{
                            public void DoWork(){ throw new NotImplementedException(); }
                            }

                            F 1 Reply Last reply
                            0
                            • U User 8562973

                              Quote:

                              Typing VB: Dim ex As ExcepR... Oops, backspace, tab and it's there. Typing C#: ExcepR... Oops, backspace, no IntelliSense window pops up, either four times backspace or Shift + Home + Delete/Backspace.

                              Try pressing backspace, then CTRL+SPACE.

                              Sander RosselS Offline
                              Sander RosselS Offline
                              Sander Rossel
                              wrote on last edited by
                              #51

                              I keep forgetting that shortcut... :doh: Still, it's only more work to get something that should've been there automatically :) I don't see why IntelliSense support had to be different for VB and C# anyway.

                              It's an OO world.

                              public class Naerling : Lazy<Person>{
                              public void DoWork(){ throw new NotImplementedException(); }
                              }

                              1 Reply Last reply
                              0
                              • U User 8562973

                                That, dear sir, conforms to lunacy. Seriously? Case sensitivity alone is reason to ditch C#? Ever hear of intellisense? As the other intelligible 'academic' above me pointed out, learning to use your IDE is crucial if you want to be a developer. Personally, I would much rather have an academic write my code than a kindergartner. They tend to think better. Good luck with your VB endeavors. I shall see you when you're done debugging. I shall now end my thoughts of anger with this period.

                                Sander RosselS Offline
                                Sander RosselS Offline
                                Sander Rossel
                                wrote on last edited by
                                #52

                                Member 8600767 wrote:

                                I would much rather have an academic write my code than a kindergartner. They tend to think better.

                                I know some academics... :doh: My trust in academics has often been misplaced and as a result I don't trust them anymore. I hold an academic title and as such am able to say university is a joke, at least over here :) Anyway, I'd have to think twice about the academic or kindergartner...

                                It's an OO world.

                                public class Naerling : Lazy<Person>{
                                public void DoWork(){ throw new NotImplementedException(); }
                                }

                                K 1 Reply Last reply
                                0
                                • L Lost User

                                  Looks more like "A couple of reasons to learn how the heck your IDE works, and some reasons why C# is better than VB" to me..

                                  V Offline
                                  V Offline
                                  V 0
                                  wrote on last edited by
                                  #53

                                  Fully agree, I more had the impression: 10 reasons why this guy doesn't know sh*t and I wouldn't like to have him on my team. :-D

                                  V.

                                  S 1 Reply Last reply
                                  0
                                  • U User 8562973

                                    That, dear sir, conforms to lunacy. Seriously? Case sensitivity alone is reason to ditch C#? Ever hear of intellisense? As the other intelligible 'academic' above me pointed out, learning to use your IDE is crucial if you want to be a developer. Personally, I would much rather have an academic write my code than a kindergartner. They tend to think better. Good luck with your VB endeavors. I shall see you when you're done debugging. I shall now end my thoughts of anger with this period.

                                    J Offline
                                    J Offline
                                    Jorgen Andersson
                                    wrote on last edited by
                                    #54

                                    I think you need to take yourself a lot less serious.

                                    Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

                                    1 Reply Last reply
                                    0
                                    • D dan sh

                                      I hope author was not really serious when he wrote that. I really hope he was being sarcastic. Specially for point 4. I mean why not just make programming same as writing an essay.

                                      "The worst code you'll come across is code you wrote last year.", wizardzz[^]

                                      J Offline
                                      J Offline
                                      Jorgen Andersson
                                      wrote on last edited by
                                      #55

                                      I think he was trolling. And while I agree with some of the points, I disagree with some others, and believe that several of the points has a lot to do with preference. And point four is exactly one of those where it is about your preference.

                                      Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

                                      D 1 Reply Last reply
                                      0
                                      • D dan sh

                                        I hope author was not really serious when he wrote that. I really hope he was being sarcastic. Specially for point 4. I mean why not just make programming same as writing an essay.

                                        "The worst code you'll come across is code you wrote last year.", wizardzz[^]

                                        K Offline
                                        K Offline
                                        Keith Barrow
                                        wrote on last edited by
                                        #56

                                        I assumed it was polemic, in an attempt to get his site looked at. In the latter point he may have been successful, but he also comes across as not knowing what he is on about so this may have backfired. What troubled me most about the article was the number of people who agreed with him. There really are very good VB devs out there, but VB does seem to still draw people who have no real knowledge and no real interest in gaining the knowledge of how things work. This drowns out the good VBers, and has much to do with VB's [undeservedly] poor reputation.

                                        Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                                        -Or-
                                        A Dead ringer for Kate Winslett[^]

                                        D 1 Reply Last reply
                                        0
                                        • Sander RosselS Sander Rossel

                                          Member 8600767 wrote:

                                          I would much rather have an academic write my code than a kindergartner. They tend to think better.

                                          I know some academics... :doh: My trust in academics has often been misplaced and as a result I don't trust them anymore. I hold an academic title and as such am able to say university is a joke, at least over here :) Anyway, I'd have to think twice about the academic or kindergartner...

                                          It's an OO world.

                                          public class Naerling : Lazy<Person>{
                                          public void DoWork(){ throw new NotImplementedException(); }
                                          }

                                          K Offline
                                          K Offline
                                          Keith Barrow
                                          wrote on last edited by
                                          #57

                                          Naerling wrote:

                                          hold an academic title and as such am able to say university is a joke, at least over here :)

                                          Come to Jordan, then the scales will fall from your eyes. Hell, they even let me teach ;) .

                                          Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                                          -Or-
                                          A Dead ringer for Kate Winslett[^]

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups