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. Other Discussions
  3. The Weird and The Wonderful
  4. VB.NET

VB.NET

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharp
12 Posts 7 Posters 27 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.
  • 1 123 0

    Shog9 wrote:

    For the last few months, i've been enhancing and maintaining a library written in VB.NET. I've done a lot of other stupid, miserable things during this time, but this library pretty much takes the cake in terms of filling me with shame and self-loathing at the end of a long day.

    So why didn't you just rewrite the thing?

    S Offline
    S Offline
    Shog9 0
    wrote on last edited by
    #3

    The Grand Negus wrote:

    So why didn't you just rewrite the thing?

    Well, i am, a bit at a time. But technically, i'm not supposed to be spending all that much time on it - the original plan was, i'd take over ownership of it, but any work would be done by outside consultants, thereby freeing me up to work on more interesting projects. So... now i'm slowly learning to program consultants. In the meantime, there's still work that needs to be done...

    ----

    It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

    --Raymond Chen on MSDN

    1 1 Reply Last reply
    0
    • S Shog9 0

      The Grand Negus wrote:

      So why didn't you just rewrite the thing?

      Well, i am, a bit at a time. But technically, i'm not supposed to be spending all that much time on it - the original plan was, i'd take over ownership of it, but any work would be done by outside consultants, thereby freeing me up to work on more interesting projects. So... now i'm slowly learning to program consultants. In the meantime, there's still work that needs to be done...

      ----

      It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

      --Raymond Chen on MSDN

      1 Offline
      1 Offline
      123 0
      wrote on last edited by
      #4

      Shog9 wrote:

      So... now i'm slowly learning to program consultants.

      Big job. What language are you using for that? :)

      S 1 Reply Last reply
      0
      • 1 123 0

        Shog9 wrote:

        So... now i'm slowly learning to program consultants.

        Big job. What language are you using for that? :)

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #5

        Since i don't know Hindi, i'm trying to use English. It's not a very good fit.

        ----

        It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

        --Raymond Chen on MSDN

        1 Reply Last reply
        0
        • S Shog9 0

          For the last few months, i've been enhancing and maintaining a library written in VB.NET. I've done a lot of other stupid, miserable things during this time, but this library pretty much takes the cake in terms of filling me with shame and self-loathing at the end of a long day. It's somewhat akin to knowingly feasting on mudpies, all day, for weeks at a time...

          ----

          It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

          --Raymond Chen on MSDN

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

          Is there any reason you can't convert it to C# ? Excellent tools exist for this purpose.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          S P 2 Replies Last reply
          0
          • C Christian Graus

            Is there any reason you can't convert it to C# ? Excellent tools exist for this purpose.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            S Offline
            S Offline
            Shog9 0
            wrote on last edited by
            #7

            Other than the one you illustrated below? ;) It's not the syntax that really irritates me; it's the little programming techniques that, by now, just scream "VB" to me: insufficient error handling, massive amounts of duplicate code, unnecessary use of late binding, etc. Every time i need to make significant changes to a class or routine, i'll re-write it, to where it reads the same as it would have if i'd written it in C#. Eventually, i'll either have re-written the whole thing to where converting it to C# will be painless... or i'll have pushed the project off onto some other poor sucker, and won't care anymore...

            ----

            It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

            --Raymond Chen on MSDN

            D 1 Reply Last reply
            0
            • S Shog9 0

              Other than the one you illustrated below? ;) It's not the syntax that really irritates me; it's the little programming techniques that, by now, just scream "VB" to me: insufficient error handling, massive amounts of duplicate code, unnecessary use of late binding, etc. Every time i need to make significant changes to a class or routine, i'll re-write it, to where it reads the same as it would have if i'd written it in C#. Eventually, i'll either have re-written the whole thing to where converting it to C# will be painless... or i'll have pushed the project off onto some other poor sucker, and won't care anymore...

              ----

              It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

              --Raymond Chen on MSDN

              D Offline
              D Offline
              Duncan Edwards Jones
              wrote on last edited by
              #8

              You do have "Option Strict" on?

              '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

              S 1 Reply Last reply
              0
              • D Duncan Edwards Jones

                You do have "Option Strict" on?

                '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

                S Offline
                S Offline
                Shog9 0
                wrote on last edited by
                #9

                It's set up to warn. Eventually, i'll manage to clear up all the warnings... :sigh:

                ----

                It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

                --Raymond Chen on MSDN

                1 Reply Last reply
                0
                • C Christian Graus

                  Is there any reason you can't convert it to C# ? Excellent tools exist for this purpose.

                  Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                  P Offline
                  P Offline
                  pbraun
                  wrote on last edited by
                  #10

                  In my experience, the language used and the options set to the strictest of standards still doesn't prevent people from writing bad code. Phil

                  S 1 Reply Last reply
                  0
                  • P pbraun

                    In my experience, the language used and the options set to the strictest of standards still doesn't prevent people from writing bad code. Phil

                    S Offline
                    S Offline
                    Sam Loveridge
                    wrote on last edited by
                    #11

                    I agree. It sounds like the original code was written in .NET "VB6 procedural" style, and not leveraging any of the benefits provided to VB developers through .NET. It's an unfortunate side effect of people not upskilling their techniques with the move from VB6 to VB.NET.

                    1 Reply Last reply
                    0
                    • S Shog9 0

                      For the last few months, i've been enhancing and maintaining a library written in VB.NET. I've done a lot of other stupid, miserable things during this time, but this library pretty much takes the cake in terms of filling me with shame and self-loathing at the end of a long day. It's somewhat akin to knowingly feasting on mudpies, all day, for weeks at a time...

                      ----

                      It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

                      --Raymond Chen on MSDN

                      G Offline
                      G Offline
                      GWB s1c
                      wrote on last edited by
                      #12

                      Haha. I hate to say this, but in my career, I keep coming across projects that are mostly C# with a small percentage of awful VB.Net code. (I do find GOOD VB.Net code on the 'net.) For example, in my first job out of college, 95% of the code was in C#. There was one group of dlls written in VB.Net where the developer had all methods take a single array of objects as THE argument. Even weirder was that almost all of the values being passed on the stack belonged as object-level fields. The code was an example of how NOT to use weak typing. It was very clear to me that the original developer spent a few months on the code... I re-wrote it all (from scratch) in 3 days!

                      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