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 126 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.
  • 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
          • K Keith Barrow

            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 Offline
            D Offline
            dan sh
            wrote on last edited by
            #58

            Well, it's not just VB. We will find people agreeing to any article about any programming language even if it is wrong at multiple levels. Although VB community is clear winner in that case.

            Keith Barrow wrote:

            This drowns out the good VBers

            We got at least one in Dave Kreskowiak here at CP.

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

            1 Reply Last reply
            0
            • J Jorgen Andersson

              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 Offline
              D Offline
              dan sh
              wrote on last edited by
              #59

              True. I do agree that putting in a "break;" after every case block might be pain sometimes. A custom code snippet for "case" does helps getting rid of typing that "break;" all the time though.

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

              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

                J Offline
                J Offline
                Johnny J
                wrote on last edited by
                #60

                I really don't understand the C# vs VB antagonism. If you're a professional programmer, you should be able to code in both languages with same ease. When C# people roar out against VB, they're being plain childish. As are the VB people when they claim that they don't understand C#.... I code in both languages and like them both!

                Why can't I be applicable like John? - Me, April 2011
                -----
                Beidh ceol, caint agus craic againn - Seán Bán Breathnach
                -----
                Da mihi sis crustum Etruscum cum omnibus in eo!
                -----
                Just because a thing is new don’t mean that it’s better - Will Rogers, September 4, 1932

                D P 2 Replies 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

                  S Offline
                  S Offline
                  SteveRW
                  wrote on last edited by
                  #61

                  It seems to me that C# devs should be getting on with coding instead of spending their time moaning about us VB guys. At the end of the day its the front end that matters to a customer.

                  Mine is not to reason why. Mine is just to code and cry. http://www.skillsmaster.co.uk

                  M 1 Reply Last reply
                  0
                  • J Johnny J

                    I really don't understand the C# vs VB antagonism. If you're a professional programmer, you should be able to code in both languages with same ease. When C# people roar out against VB, they're being plain childish. As are the VB people when they claim that they don't understand C#.... I code in both languages and like them both!

                    Why can't I be applicable like John? - Me, April 2011
                    -----
                    Beidh ceol, caint agus craic againn - Seán Bán Breathnach
                    -----
                    Da mihi sis crustum Etruscum cum omnibus in eo!
                    -----
                    Just because a thing is new don’t mean that it’s better - Will Rogers, September 4, 1932

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

                    I am currently working on both VB and C# side by side. What makes life hell is habit of adding semi colon or using "enter" for autocomplete in VB and using brackets in C# rather than {}. Other things that I have noticed is that VB either does not have is and as equivalents or I just don't know if there is any. And yes, VB does not have out parameters too I guess.

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

                    J S 2 Replies Last reply
                    0
                    • D dan sh

                      I am currently working on both VB and C# side by side. What makes life hell is habit of adding semi colon or using "enter" for autocomplete in VB and using brackets in C# rather than {}. Other things that I have noticed is that VB either does not have is and as equivalents or I just don't know if there is any. And yes, VB does not have out parameters too I guess.

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

                      J Offline
                      J Offline
                      Johnny J
                      wrote on last edited by
                      #63

                      VB has both is and output parameters...

                      Why can't I be applicable like John? - Me, April 2011
                      -----
                      Beidh ceol, caint agus craic againn - Seán Bán Breathnach
                      -----
                      Da mihi sis crustum Etruscum cum omnibus in eo!
                      -----
                      Just because a thing is new don’t mean that it’s better - Will Rogers, September 4, 1932

                      D A 2 Replies Last reply
                      0
                      • A Anthony Mushrow

                        OriginalGriff wrote:

                        1. And what do you think ReDim Preserve is doing behind the scenes? At least with the C# version it is obvious that this is going to consume time and memory...

                        The whole point conveniently ignoring the obvious solution, which would be that if you want to go around resizing your arrays you should use something like List<T> and not a regular array in the first place.

                        -SK Genius

                        Vehicle Simulation Demo - New and Improved!

                        OriginalGriffO Offline
                        OriginalGriffO Offline
                        OriginalGriff
                        wrote on last edited by
                        #64

                        Yep. I almost never declate arrays these days - with the exception of byte[] and so forth to handle conversions between image and stream. But the existence of ReDim encourages the lazy to use an array - not thinking about the wasted memory and effort it involves behind the scenes.

                        Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                        1 Reply Last reply
                        0
                        • J Johnny J

                          VB has both is and output parameters...

                          Why can't I be applicable like John? - Me, April 2011
                          -----
                          Beidh ceol, caint agus craic againn - Seán Bán Breathnach
                          -----
                          Da mihi sis crustum Etruscum cum omnibus in eo!
                          -----
                          Just because a thing is new don’t mean that it’s better - Will Rogers, September 4, 1932

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

                          Thanks! Didn't knew that.

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

                          A 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

                            S Offline
                            S Offline
                            Simon_Whale
                            wrote on last edited by
                            #66

                            I do love the fact that a bunch of developers including myself read this article and took it seriously, but upon reading it again I noticed this at the top of the article. Andy ‘Wise Owl’ Brown decided to write a tongue-in-cheek rant whilst he could still remember the pain-points.

                            Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

                            J 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

                              G Offline
                              G Offline
                              Gary Wheeler
                              wrote on last edited by
                              #67

                              I sincerely hope checked and the article is satire. If it isn't, the guy's I wrote the following because I'm an idiot: 1. Writing software well is a matter of attention to details. If you can't be arsed to even get the name of something right, you're probably going to screw up more important things. 2. If you're going to criticize a language, at least get your examples right. His C# code doesn't duplicate the logic in his VB. 3. Learn how your IDE works, moron. I can assign events in my C# code any time I like, and I'm using VS2008. 4. These are operators, which I would expect to be concise. Can you imagine writing this:

                              proportion = openquantity openquantity a addto b addto c addto d closequantity dividedby e closequantity multipliedby 100

                              instead of

                              proportion = ((a + b + c + d) / e) * 100

                              Secondly, programming is symbol manipulation. As in my response to #1, if you can't get this right, there are a whole bunch of other things you won't get right. 5. Sigh. Snippets in the IDE. The guy's like a carpenter who has to be told how to use a hammer every morning. 6. They's in the bloody CLR library. In 30 years of programming, not once have I needed to use the mortgage payment function. As far as 'is number' goes, I do localized applications. The library functions for validating localized numbers are usually inept. The .NET versions are actually pretty good, from what I've seen. They seem to work well for common number formats found in the U.S., Europe, and Asia. 7. VB's line continuation character is as annoying as Pascal's use of the semicolon as a statement separator. It's a special case you have to remember all of the time. At least with the C-style languages, you just put the semicolon at the end of every statement. Period. 8. To-may-toe, To-mah-toe. 9. VB encourages you to be sloppy. Once again, point #1. 10. C# gives you a whole lot more control over data structure transformations. With a language that encourages sloppiness, I wouldn't expect it to handle this kind of thing in a fashion that performed well.

                              Software Zen: delete this;

                              P J 2 Replies Last reply
                              0
                              • OriginalGriffO OriginalGriff

                                To add to the above: 1) Case is case - and people use it for different things. Personnaly, I like case to be maintained as it ensures camelCase it not lost halfway through - and since Intellisense sorts it out for you, it is hardly a problem. 2) I will give them that one - but the case statement is not meant for things like that: if statements are. 3) Is it so much work to do this? Rename works to re-assign the handler in C# anyway... 4) If you can't work out symbols for operators, perhaps you would be better off with COBOL... 5) I prefer the C# snippet "prop":

                                prop[TAB][TAB]

                                public int MyProperty { get; set; }

                                Ready to be filled in... 6) Char.IsNumber anyone? 7) For the same reason that most languages have a full stop at the end of the sentence. 8) Doctor Jones, anyone? Professor Plum? Constable Smith? Mr White? Mrs Black? 9) Strictness is a virtue of C# not a problem - hence the existance of type safe List<T> rather than ArrayList 10) And what do you think ReDim Preserve is doing behind the scenes? At least with the C# version it is obvious that this is going to consume time and memory... IMHO Andy Brown needs to get a bit more real-world experience before shooting his keyboard off...

                                Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                                P Offline
                                P Offline
                                Peter Adam
                                wrote on last edited by
                                #68
                                1. type casting: one can save a pair of parentheses, compared to C#.
                                OriginalGriffO S P 3 Replies Last reply
                                0
                                • OriginalGriffO OriginalGriff

                                  To add to the above: 1) Case is case - and people use it for different things. Personnaly, I like case to be maintained as it ensures camelCase it not lost halfway through - and since Intellisense sorts it out for you, it is hardly a problem. 2) I will give them that one - but the case statement is not meant for things like that: if statements are. 3) Is it so much work to do this? Rename works to re-assign the handler in C# anyway... 4) If you can't work out symbols for operators, perhaps you would be better off with COBOL... 5) I prefer the C# snippet "prop":

                                  prop[TAB][TAB]

                                  public int MyProperty { get; set; }

                                  Ready to be filled in... 6) Char.IsNumber anyone? 7) For the same reason that most languages have a full stop at the end of the sentence. 8) Doctor Jones, anyone? Professor Plum? Constable Smith? Mr White? Mrs Black? 9) Strictness is a virtue of C# not a problem - hence the existance of type safe List<T> rather than ArrayList 10) And what do you think ReDim Preserve is doing behind the scenes? At least with the C# version it is obvious that this is going to consume time and memory... IMHO Andy Brown needs to get a bit more real-world experience before shooting his keyboard off...

                                  Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                                  A Offline
                                  A Offline
                                  Aamir Butt
                                  wrote on last edited by
                                  #69

                                  For 2. he says that "It’s easy to forget to type in each of these Break statements!" conveniently ignoring that C# Compiler gives you an error saying that Control cannot fall through from one case label to another...

                                  A year spent in artificial intelligence is enough to make one believe in God

                                  S C 2 Replies Last reply
                                  0
                                  • P Peter Adam
                                    1. type casting: one can save a pair of parentheses, compared to C#.
                                    OriginalGriffO Offline
                                    OriginalGriffO Offline
                                    OriginalGriff
                                    wrote on last edited by
                                    #70

                                    And just think of the saving in wear and tear on the '[' and ']' keys! :laugh:

                                    Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                    1 Reply Last reply
                                    0
                                    • V V 0

                                      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 Offline
                                      S Offline
                                      sergiogarcianinja
                                      wrote on last edited by
                                      #71

                                      Totally agreed.

                                      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

                                        J Offline
                                        J Offline
                                        Jeremy Hutchinson
                                        wrote on last edited by
                                        #72

                                        I'm really surprised no one else caught this, but his example of "stupid symbols" is incorrect.

                                                                            C#      VB.Net 
                                        

                                        Test if two conditions are both true && and
                                        Test if one or other condition is true || or

                                        The C# equivalent of "And" is "&", and the the VB.Net equivalent of "&&" is "AndAlso". For a guy who's worried about how often he's going to have to hit the shift key, I'd think he'd prefer these quick symbols to the verbosity of VB.

                                        1 Reply Last reply
                                        0
                                        • L Lost User

                                          They both the same for Mr.CLR

                                          M Offline
                                          M Offline
                                          Michael Haines
                                          wrote on last edited by
                                          #73

                                          Yes! "I am rarely happier than when spending entire day programming my computer to perform automatically a task that it would otherwise take me a good ten seconds to do by hand." - Douglas Adams

                                          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