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. Why I Hate VB Today

Why I Hate VB Today

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studio
62 Posts 37 Posters 0 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.
  • realJSOPR realJSOP
    1. The intellisense refuses to "let go" unless I tap the Escape key 1) Syntax highlighting sucks. In C#, all types are highlighted - in VB, only intrinisc types are highlighted. 2) It's VB. 3) There are no automatic code formatting options like we get with C#

    .45 ACP - because shooting twice is just silly
    -----
    "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
    -----
    "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

    P Offline
    P Offline
    Phil Martin
    wrote on last edited by
    #26
    1. It's super odd array declaration syntax that allows indexing to start at 1 instead of 0. There are a couple of things it has that I wish C# had though. -1) Calling an interface implementation method by a different name. Thats handy some times when implementing 4 similar interfaces. -2) It's XML support in the code. It's nice sometimes. -3) How you don't have to check if a event handler is null before you call it. I don't think I've ever wanted calling a null event handler to throw an exception. Shoot me now, I can't believe I said something positive about VB.
    realJSOPR 1 Reply Last reply
    0
    • P Phil Martin
      1. It's super odd array declaration syntax that allows indexing to start at 1 instead of 0. There are a couple of things it has that I wish C# had though. -1) Calling an interface implementation method by a different name. Thats handy some times when implementing 4 similar interfaces. -2) It's XML support in the code. It's nice sometimes. -3) How you don't have to check if a event handler is null before you call it. I don't think I've ever wanted calling a null event handler to throw an exception. Shoot me now, I can't believe I said something positive about VB.
      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #27

      Phil Martin... wrote:

      -1) Calling an interface implementation method by a different name. Thats handy some times when implementing 4 similar interfaces.

      But this seems to compile in C#...

      public interface IFace1
      {
      void Func1();
      }

      public interface IFace2
      {
      void Func1();
      }

      class Class1 : IFace1, IFace2
      {
      void IFace1.Func1() { }

      void IFace2.Func1() { }
      
      void Func1() { }
      

      }

      Phil Martin... wrote:

      -2) It's XML support in the code. It's nice sometimes.

      What does that mean?

      Phil Martin... wrote:

      -3) How you don't have to check if a event handler is null before you call it. I don't think I've ever wanted calling a null event handler to throw an exception.

      I don't have that problem. When I create a custom event, I do this:

      null.

      .45 ACP - because shooting twice is just silly
      -----
      "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
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      P 1 Reply Last reply
      0
      • D Dalek Dave

        No Pooftahs!

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

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

        No, that's rule six...

        1f y0u c4n r34d 7h15 y0u r3411y n33d 70 g37 14!d Gotta run; I've got people to do and things to see... Don't tell my folks I'm a computer programmer - They think I'm a piano player in a cat house... Da mihi sis crustum Etruscum cum omnibus in eo!

        K 1 Reply Last reply
        0
        • realJSOPR realJSOP
          1. The intellisense refuses to "let go" unless I tap the Escape key 1) Syntax highlighting sucks. In C#, all types are highlighted - in VB, only intrinisc types are highlighted. 2) It's VB. 3) There are no automatic code formatting options like we get with C#

          .45 ACP - because shooting twice is just silly
          -----
          "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
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

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

          Well, joke about VB all that you want, but if it pays your meals, then what the heck??? I'll take your VB jobs if you really don't want them...

          1f y0u c4n r34d 7h15 y0u r3411y n33d 70 g37 14!d Gotta run; I've got people to do and things to see... Don't tell my folks I'm a computer programmer - They think I'm a piano player in a cat house... Da mihi sis crustum Etruscum cum omnibus in eo!

          1 Reply Last reply
          0
          • I Ian Shlasko

            Yep, VB3 was great (I never used VB1 or 2)... Before then, I had stuck to console programming because... Let's face it... I was lazy. Then VB4 came along, and that was great... Then VB5 came along, finally adding OOP (Kinda... Well, almost... Eh) Then VB6 came along, and I started to wonder. Then VB.NET came along, and I cheered. Then I looked over at C#, and thought, "Why am I still writing VB code?"

            Proud to have finally moved to the A-Ark. Which one are you in?
            Author of the Guardians Saga (Sci-Fi/Fantasy novels)

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

            Ian Shlasko wrote:

            Then I looked over at C#, and thought

            Whereas I looked at c# and wondered why anyone would use a case sensitive language. It wasn't till intellisense improved to the point where case was irrelevant that I was willing to move to c# and that was in vs08.

            Never underestimate the power of human stupidity RAH

            K 1 Reply Last reply
            0
            • realJSOPR realJSOP

              Well, going back to C# on this project is a moot point because I got the app running late yesterday afternoon. Since the code is essentially at the same place we were on Veteran's Day with the C# version, why go back? The gist of that is that there will be no team meeting about what we should do. The customer called my boss into his office and shut the door this morning, so nobody else knows what was said. In essence, I'm in VB hell, and will be there until sometime late next year when/if the contract is converted to civil service. This is the fourth job I've had in the last three years, and don't want to hop to a new one until I've been here at least a year (March 2011).

              .45 ACP - because shooting twice is just silly
              -----
              "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
              -----
              "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

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

              I'm glad to hear your ass is not in the sling for your managers decisions.

              John Simmons / outlaw programmer wrote:

              This is the fourth job I've had in the last three years

              I can understand that decision, economic survival has some excellent benefits. And no matter the reasons too many short term contracts just looks bad on a CV.

              Never underestimate the power of human stupidity RAH

              1 Reply Last reply
              0
              • realJSOPR realJSOP

                Phil Martin... wrote:

                -1) Calling an interface implementation method by a different name. Thats handy some times when implementing 4 similar interfaces.

                But this seems to compile in C#...

                public interface IFace1
                {
                void Func1();
                }

                public interface IFace2
                {
                void Func1();
                }

                class Class1 : IFace1, IFace2
                {
                void IFace1.Func1() { }

                void IFace2.Func1() { }
                
                void Func1() { }
                

                }

                Phil Martin... wrote:

                -2) It's XML support in the code. It's nice sometimes.

                What does that mean?

                Phil Martin... wrote:

                -3) How you don't have to check if a event handler is null before you call it. I don't think I've ever wanted calling a null event handler to throw an exception.

                I don't have that problem. When I create a custom event, I do this:

                null.

                .45 ACP - because shooting twice is just silly
                -----
                "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
                -----
                "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                P Offline
                P Offline
                Phil Martin
                wrote on last edited by
                #32
                1. Congratulations on writing code that will compile, but it isn't the same thing. 2) Here's a simple example: Dim xml =

                Shrimp Cocktail Escargot Filet Mignon Garlic Potatoes Broccoli Chocolate Cheesecake

                And it will create an XElement tree for use in code. Do a search for "XML Literals in VB.Net". You can do some nice subtitution and things as well. It's nice, sometimes. 3) I think something got trimmed in your third one, it just said "null".

                1 Reply Last reply
                0
                • realJSOPR realJSOP
                  1. The intellisense refuses to "let go" unless I tap the Escape key 1) Syntax highlighting sucks. In C#, all types are highlighted - in VB, only intrinisc types are highlighted. 2) It's VB. 3) There are no automatic code formatting options like we get with C#

                  .45 ACP - because shooting twice is just silly
                  -----
                  "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
                  -----
                  "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                  J Offline
                  J Offline
                  Jason Christian
                  wrote on last edited by
                  #33

                  Funny - those all sound like problems with your VB IDE (granted, not a lot of options there), not the language itself. (Which has plenty of reasons to hate it).

                  M 1 Reply Last reply
                  0
                  • realJSOPR realJSOP
                    1. The intellisense refuses to "let go" unless I tap the Escape key 1) Syntax highlighting sucks. In C#, all types are highlighted - in VB, only intrinisc types are highlighted. 2) It's VB. 3) There are no automatic code formatting options like we get with C#

                    .45 ACP - because shooting twice is just silly
                    -----
                    "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
                    -----
                    "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                    R Offline
                    R Offline
                    R Erasmus
                    wrote on last edited by
                    #34

                    The first letter doesn't start with a C. That is I love any syntax of a programming language that starts with a C.

                    "Program testing can be used to show the presence of bugs, but never to show their absence." << please vote!! >>

                    K 1 Reply Last reply
                    0
                    • J Jim Crafton

                      Yeah the tension between the two is killing me - when is John finally going to show VB what a man he is? Will VB cry? Will they hold hands? And finally, the most important question: does VB have a sister?

                      ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                      M Offline
                      M Offline
                      Mark_Wallace
                      wrote on last edited by
                      #35

                      I heard that VB has been getting more than a little familiar with her coach from Jimmy Connors' Pro Tennis Tour. Could be trouble waters ahead.

                      I wanna be a eunuchs developer! Pass me a bread knife!

                      1 Reply Last reply
                      0
                      • H Henry Minute

                        Jim Crafton wrote:

                        does VB have a sister

                        Yes. Yes she does[^]!

                        Do Until True = False
                        Bump Squidgey bits
                        Loop

                        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                        H Offline
                        H Offline
                        Hosey
                        wrote on last edited by
                        #36

                        Ahh the elusive "Fit gamer chick"... a species that is almost exstinct.. :((

                        1 Reply Last reply
                        0
                        • I Ian Shlasko

                          Yep, VB3 was great (I never used VB1 or 2)... Before then, I had stuck to console programming because... Let's face it... I was lazy. Then VB4 came along, and that was great... Then VB5 came along, finally adding OOP (Kinda... Well, almost... Eh) Then VB6 came along, and I started to wonder. Then VB.NET came along, and I cheered. Then I looked over at C#, and thought, "Why am I still writing VB code?"

                          Proud to have finally moved to the A-Ark. Which one are you in?
                          Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                          H Offline
                          H Offline
                          Hosey
                          wrote on last edited by
                          #37

                          You just described my progression through VB development... :)

                          1 Reply Last reply
                          0
                          • J Johnny J

                            No, that's rule six...

                            1f y0u c4n r34d 7h15 y0u r3411y n33d 70 g37 14!d Gotta run; I've got people to do and things to see... Don't tell my folks I'm a computer programmer - They think I'm a piano player in a cat house... Da mihi sis crustum Etruscum cum omnibus in eo!

                            K Offline
                            K Offline
                            KP Lee
                            wrote on last edited by
                            #38

                            Keep quiet! That's my password creation technique!

                            1 Reply Last reply
                            0
                            • M Mycroft Holmes

                              Ian Shlasko wrote:

                              Then I looked over at C#, and thought

                              Whereas I looked at c# and wondered why anyone would use a case sensitive language. It wasn't till intellisense improved to the point where case was irrelevant that I was willing to move to c# and that was in vs08.

                              Never underestimate the power of human stupidity RAH

                              K Offline
                              K Offline
                              KP Lee
                              wrote on last edited by
                              #39

                              They designed case sensitive coding for the people who like to make code that is unreadable: int AaAzZF32; ... 20 lines later: int AaAzZf32;

                              1 Reply Last reply
                              0
                              • R R Erasmus

                                The first letter doesn't start with a C. That is I love any syntax of a programming language that starts with a C.

                                "Program testing can be used to show the presence of bugs, but never to show their absence." << please vote!! >>

                                K Offline
                                K Offline
                                KP Lee
                                wrote on last edited by
                                #40

                                You love COBOL!!!???!!! Well, there's a first time for everything. OK, I'm kidding, I've met people who like COBOL. (Also, read about one in this thread.)

                                R 1 Reply Last reply
                                0
                                • K KP Lee

                                  You love COBOL!!!???!!! Well, there's a first time for everything. OK, I'm kidding, I've met people who like COBOL. (Also, read about one in this thread.)

                                  R Offline
                                  R Offline
                                  R Erasmus
                                  wrote on last edited by
                                  #41

                                  I was waiting for someone to point that out, ;-) ok, let me rephrase:

                                  string language = getLanguage();

                                  if ((language.Length < 4) &&
                                  ((language.StartsWith('C') == true) ||
                                  (language.StartsWith('c') == true)))
                                  {
                                  MessageBox.Show("I like this shit!! ;-)");
                                  }

                                  "Program testing can be used to show the presence of bugs, but never to show their absence." << please vote!! >>

                                  K D 2 Replies Last reply
                                  0
                                  • R R Erasmus

                                    I was waiting for someone to point that out, ;-) ok, let me rephrase:

                                    string language = getLanguage();

                                    if ((language.Length < 4) &&
                                    ((language.StartsWith('C') == true) ||
                                    (language.StartsWith('c') == true)))
                                    {
                                    MessageBox.Show("I like this shit!! ;-)");
                                    }

                                    "Program testing can be used to show the presence of bugs, but never to show their absence." << please vote!! >>

                                    K Offline
                                    K Offline
                                    KP Lee
                                    wrote on last edited by
                                    #42

                                    CBL? That would be COBOL without OO design. (Is that redundant?)

                                    1 Reply Last reply
                                    0
                                    • realJSOPR realJSOP
                                      1. The intellisense refuses to "let go" unless I tap the Escape key 1) Syntax highlighting sucks. In C#, all types are highlighted - in VB, only intrinisc types are highlighted. 2) It's VB. 3) There are no automatic code formatting options like we get with C#

                                      .45 ACP - because shooting twice is just silly
                                      -----
                                      "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
                                      -----
                                      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                                      E Offline
                                      E Offline
                                      eslsys
                                      wrote on last edited by
                                      #43

                                      |-O

                                      1 Reply Last reply
                                      0
                                      • I Ian Shlasko
                                        1. Extra keywords... List(Of Integer) vs. List<int> 5) It's VB. 6) There is NOOOOOOO.... Rule 6 :)

                                        Proud to have finally moved to the A-Ark. Which one are you in?
                                        Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                                        F Offline
                                        F Offline
                                        Fabio Franco
                                        wrote on last edited by
                                        #44
                                        1. There is Rule 6 8) Rule 6 is on Rule 9 9) It's VB 10) Option Explicit 11) Option Strict
                                        1 Reply Last reply
                                        0
                                        • J Jason Christian

                                          Funny - those all sound like problems with your VB IDE (granted, not a lot of options there), not the language itself. (Which has plenty of reasons to hate it).

                                          M Offline
                                          M Offline
                                          Michael Kingsford Gray
                                          wrote on last edited by
                                          #45

                                          Such as?

                                          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