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 VB.NET sucks today (and every other day)

Why VB.NET sucks today (and every other day)

Scheduled Pinned Locked Moved The Lounge
csharpc++data-structureslearning
16 Posts 12 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.
  • A Adam Maras

    So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:

    Private Const String FirstReceiptNumber = "GA00000"

    Public String GenerateReceiptNumber(ByVal lastNumber As String)
    ' ...
    End Function

    This, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:

    Private Const String FirstReceiptNumber As String = "GA00000"

    Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
    ' ...
    End Function

    *sigh* :doh:

    Adam Maras | Software Developer Microsoft Certified Professional Developer

    R Offline
    R Offline
    Rama Krishna Vavilala
    wrote on last edited by
    #2

    So what sucked? Syntax differences between vb.Net and c#or that you did not get the vb. Net code right the first time.

    Click here to get a Google Wave Invite.

    realJSOPR 1 Reply Last reply
    0
    • R Rama Krishna Vavilala

      So what sucked? Syntax differences between vb.Net and c#or that you did not get the vb. Net code right the first time.

      Click here to get a Google Wave Invite.

      realJSOPR Online
      realJSOPR Online
      realJSOP
      wrote on last edited by
      #3

      What sucked was he was trying to do VB, and as expected, the compiler choked on real code.

      .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

      A 1 Reply Last reply
      0
      • realJSOPR realJSOP

        What sucked was he was trying to do VB, and as expected, the compiler choked on real code.

        .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

        A Offline
        A Offline
        Adam Maras
        wrote on last edited by
        #4

        This.

        Adam Maras | Software Developer Microsoft Certified Professional Developer

        C 1 Reply Last reply
        0
        • A Adam Maras

          This.

          Adam Maras | Software Developer Microsoft Certified Professional Developer

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #5

          Don't you mean 'me' ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          D realJSOPR P 3 Replies Last reply
          0
          • A Adam Maras

            So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:

            Private Const String FirstReceiptNumber = "GA00000"

            Public String GenerateReceiptNumber(ByVal lastNumber As String)
            ' ...
            End Function

            This, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:

            Private Const String FirstReceiptNumber As String = "GA00000"

            Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
            ' ...
            End Function

            *sigh* :doh:

            Adam Maras | Software Developer Microsoft Certified Professional Developer

            E Offline
            E Offline
            elektrowolf
            wrote on last edited by
            #6

            So you don't know the VB.NET syntax and think VB sucks because it doesn't compile C syntax?

            1 Reply Last reply
            0
            • C Christian Graus

              Don't you mean 'me' ?

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              realJSOPR Online
              realJSOPR Online
              realJSOP
              wrote on last edited by
              #7

              No, he meant "this". VB means "Me"...

              .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

              1 Reply Last reply
              0
              • C Christian Graus

                Don't you mean 'me' ?

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                D Offline
                D Offline
                Dr Walt Fair PE
                wrote on last edited by
                #8

                VB is always about Me and never about You, This or that. And don't forget 1t.

                CQ de W5ALT

                Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                1 Reply Last reply
                0
                • C Christian Graus

                  Don't you mean 'me' ?

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #9

                  Me, me, me. That's all the VB crowd ever talk about.

                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                  As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                  My blog | My articles | MoXAML PowerToys | Onyx

                  L 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    Me, me, me. That's all the VB crowd ever talk about.

                    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                    As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                    My blog | My articles | MoXAML PowerToys | Onyx

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    Feeling a little paranoid today?

                    ___________________________________________ .\\axxx (That's an 'M')

                    P 1 Reply Last reply
                    0
                    • L Lost User

                      Feeling a little paranoid today?

                      ___________________________________________ .\\axxx (That's an 'M')

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #11

                      That's what the guy at the train station said today. Well, he didn't say it to me - he was talking to this other guy, but I knew he was talking about me; even though I couldn't hear him.

                      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                      My blog | My articles | MoXAML PowerToys | Onyx

                      1 Reply Last reply
                      0
                      • A Adam Maras

                        So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:

                        Private Const String FirstReceiptNumber = "GA00000"

                        Public String GenerateReceiptNumber(ByVal lastNumber As String)
                        ' ...
                        End Function

                        This, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:

                        Private Const String FirstReceiptNumber As String = "GA00000"

                        Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
                        ' ...
                        End Function

                        *sigh* :doh:

                        Adam Maras | Software Developer Microsoft Certified Professional Developer

                        D Offline
                        D Offline
                        Don Burton
                        wrote on last edited by
                        #12

                        Soon there will only be one: http://www.infoworld.com/d/developer-world/microsoft-open-compilers-visual-basic-c-894[^] Of course the question is which one... :sigh:

                        1 Reply Last reply
                        0
                        • A Adam Maras

                          So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:

                          Private Const String FirstReceiptNumber = "GA00000"

                          Public String GenerateReceiptNumber(ByVal lastNumber As String)
                          ' ...
                          End Function

                          This, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:

                          Private Const String FirstReceiptNumber As String = "GA00000"

                          Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
                          ' ...
                          End Function

                          *sigh* :doh:

                          Adam Maras | Software Developer Microsoft Certified Professional Developer

                          L Offline
                          L Offline
                          leckey 0
                          wrote on last edited by
                          #13

                          I have not read every response, but I have to agree with the general consensus. I also came from a C++ background, then C#, then VB. I had a teacher in college who made us do the same program in four different languages, including non-OOP ones so we learned how to focus on logic versus syntax. It's like English versus another language; if you learn what a noun, verb, adjective, etc. is, you just have to learn the specifics of that language. Like for instance English puts adjectives before a noun, but in Spanish, it's after the noun.

                          Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]

                          1 Reply Last reply
                          0
                          • A Adam Maras

                            So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:

                            Private Const String FirstReceiptNumber = "GA00000"

                            Public String GenerateReceiptNumber(ByVal lastNumber As String)
                            ' ...
                            End Function

                            This, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:

                            Private Const String FirstReceiptNumber As String = "GA00000"

                            Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
                            ' ...
                            End Function

                            *sigh* :doh:

                            Adam Maras | Software Developer Microsoft Certified Professional Developer

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

                            What's that expression about blaming tools? If you'd named the thread "Why I suck today", we'd all have been very sympathetic.

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

                            D 1 Reply Last reply
                            0
                            • M Mark_Wallace

                              What's that expression about blaming tools? If you'd named the thread "Why I suck today", we'd all have been very sympathetic.

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

                              D Offline
                              D Offline
                              Dan Neely
                              wrote on last edited by
                              #15

                              Speak for yourself. Not everyone swings that way.

                              3x12=36 2x12=24 1x12=12 0x12=18

                              M 1 Reply Last reply
                              0
                              • D Dan Neely

                                Speak for yourself. Not everyone swings that way.

                                3x12=36 2x12=24 1x12=12 0x12=18

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

                                Ewww!!! That's a pun we could have lived without!

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

                                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