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 -> C# ?

VB.NET -> C# ?

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpc++comarchitecture
16 Posts 12 Posters 168 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.
  • C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #1

    I work on an app that was started by someone else in VB.NET. I hope it was the conversion to C# that causes me to still find code like: for(int i = 0; i <= myObject.Length - 1; ++ i) or, even better: int g = item.Count - 1 + 1; I find examples of both of these almost every time I wander into the guts of stuff I've not had to touch before, like some of the basic controls we suddenly decide to change after 2 years.

    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 )

    B M 2 Replies Last reply
    0
    • C Christian Graus

      I work on an app that was started by someone else in VB.NET. I hope it was the conversion to C# that causes me to still find code like: for(int i = 0; i <= myObject.Length - 1; ++ i) or, even better: int g = item.Count - 1 + 1; I find examples of both of these almost every time I wander into the guts of stuff I've not had to touch before, like some of the basic controls we suddenly decide to change after 2 years.

      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 )

      B Offline
      B Offline
      Bradml
      wrote on last edited by
      #2

      ?That sounds like the kind of moment where you wish the ESC button worked.


      Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

      C M 2 Replies Last reply
      0
      • B Bradml

        ?That sounds like the kind of moment where you wish the ESC button worked.


        Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

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

        *grin* yeah, I certainly did a double take. Converting to C# took a half day to make work, and 2 days more to make work once I removed all references to the Microsoft.VisualBasic namespace. It was well worth it.

        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 )

        B 1 Reply Last reply
        0
        • C Christian Graus

          *grin* yeah, I certainly did a double take. Converting to C# took a half day to make work, and 2 days more to make work once I removed all references to the Microsoft.VisualBasic namespace. It was well worth it.

          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 )

          B Offline
          B Offline
          Bradml
          wrote on last edited by
          #4

          What a mess.


          Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

          C 1 Reply Last reply
          0
          • B Bradml

            What a mess.


            Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

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

            Yeah, I had been contracted and written dlls in C# which the app was using. It didn't occur to me that the main app could be VB.NET. Obviously VB.NET could do most of it ( it couldn't do the stuff I wrote, as it happens ), but I just hate it, and it's not a productive language for me.

            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 )

            B 1 Reply Last reply
            0
            • C Christian Graus

              Yeah, I had been contracted and written dlls in C# which the app was using. It didn't occur to me that the main app could be VB.NET. Obviously VB.NET could do most of it ( it couldn't do the stuff I wrote, as it happens ), but I just hate it, and it's not a productive language for me.

              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 )

              B Offline
              B Offline
              Bradml
              wrote on last edited by
              #6

              VB.NET is the devil. There, I said it.


              Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

              V P 2 Replies Last reply
              0
              • B Bradml

                VB.NET is the devil. There, I said it.


                Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                Yup. I prefer C#. It is elegant.

                Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                S 1 Reply Last reply
                0
                • B Bradml

                  VB.NET is the devil. There, I said it.


                  Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

                  P Offline
                  P Offline
                  Pascal Ganaye
                  wrote on last edited by
                  #8

                  If C++ is heaven and VB.Net is hell then C# is probably purgatory.

                  F J 2 Replies Last reply
                  0
                  • C Christian Graus

                    I work on an app that was started by someone else in VB.NET. I hope it was the conversion to C# that causes me to still find code like: for(int i = 0; i <= myObject.Length - 1; ++ i) or, even better: int g = item.Count - 1 + 1; I find examples of both of these almost every time I wander into the guts of stuff I've not had to touch before, like some of the basic controls we suddenly decide to change after 2 years.

                    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 )

                    M Offline
                    M Offline
                    Marcus J Smith
                    wrote on last edited by
                    #9

                    Christian Graus wrote:

                    int g = item.Count - 1 + 1;

                    Well this is no help for your cause but I upgraded some custom paging code written in ASP to VB.NET. If intPageLength <= (intTotalPages/intPageLength - 1) + 1 it took me forever to fix that crap.


                    CleaKO

                    "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
                    "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

                    1 Reply Last reply
                    0
                    • V Vasudevan Deepak Kumar

                      Yup. I prefer C#. It is elegant.

                      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

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

                      There's nothing more frustrating than maintaining crappy code :) Elegance is in the hands of the coder. You can write efficient and elegant code in pretty much any language (VB.NET is no exception), just as you can write jibberish, inefficient code in pretty much any language (C# is no exception). Unfortunately it sounds like from this forum that VB.NET is the language of preference for hacks, which disappointingly gives the language a bad name.

                      S D 2 Replies Last reply
                      0
                      • P Pascal Ganaye

                        If C++ is heaven and VB.Net is hell then C# is probably purgatory.

                        F Offline
                        F Offline
                        Fernando A Gomez F
                        wrote on last edited by
                        #11

                        Amen :)

                        A polar bear is a bear whose coordinates has been changed in terms of sine and cosine. Personal Site

                        1 Reply Last reply
                        0
                        • S Sam Loveridge

                          There's nothing more frustrating than maintaining crappy code :) Elegance is in the hands of the coder. You can write efficient and elegant code in pretty much any language (VB.NET is no exception), just as you can write jibberish, inefficient code in pretty much any language (C# is no exception). Unfortunately it sounds like from this forum that VB.NET is the language of preference for hacks, which disappointingly gives the language a bad name.

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

                          Eduardo Fandangle wrote:

                          Unfortunately it sounds like from this forum that VB.NET is the language of preference for hacks, which disappointingly gives the language a bad name.

                          The language was designed for hacks. Literally. Important design choices were made to support VB6 hacks. A bastardized upgrade to a bastardization of a bastard language. Little surprise that the hacks seem more comfortable...

                          ----

                          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

                          A 1 Reply Last reply
                          0
                          • B Bradml

                            ?That sounds like the kind of moment where you wish the ESC button worked.


                            Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

                            M Offline
                            M Offline
                            Muammar
                            wrote on last edited by
                            #13

                            :laugh::laugh:


                            Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                            1 Reply Last reply
                            0
                            • S Sam Loveridge

                              There's nothing more frustrating than maintaining crappy code :) Elegance is in the hands of the coder. You can write efficient and elegant code in pretty much any language (VB.NET is no exception), just as you can write jibberish, inefficient code in pretty much any language (C# is no exception). Unfortunately it sounds like from this forum that VB.NET is the language of preference for hacks, which disappointingly gives the language a bad name.

                              D Offline
                              D Offline
                              DA_Loring
                              wrote on last edited by
                              #14

                              Hear hear Eduardo!

                              David Loring !! Keep Music Live !!

                              1 Reply Last reply
                              0
                              • S Shog9 0

                                Eduardo Fandangle wrote:

                                Unfortunately it sounds like from this forum that VB.NET is the language of preference for hacks, which disappointingly gives the language a bad name.

                                The language was designed for hacks. Literally. Important design choices were made to support VB6 hacks. A bastardized upgrade to a bastardization of a bastard language. Little surprise that the hacks seem more comfortable...

                                ----

                                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

                                A Offline
                                A Offline
                                AndrewVos
                                wrote on last edited by
                                #15

                                I love vb.net ;) You're all just jealous of not having My.Settings :> Ok, I'm just joking. Noone freak out


                                www.wickedorange.com

                                1 Reply Last reply
                                0
                                • P Pascal Ganaye

                                  If C++ is heaven and VB.Net is hell then C# is probably purgatory.

                                  J Offline
                                  J Offline
                                  jhwurmbach
                                  wrote on last edited by
                                  #16

                                  Pascal Ganaye wrote:

                                  C++ is heaven and VB.Net is hell

                                  VB.NET might be hell - I can't comment on that. But C++ is certainly not heaven. Its more like the treadmill of everyday life: Somtimes fun and really exiting, somtimes making you mad, but most of the time just plain boring and repetitive.


                                  Failure is not an option - it's built right in.

                                  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