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. VB.NET v C#

VB.NET v C#

Scheduled Pinned Locked Moved The Lounge
csharpdotnetquestion
38 Posts 20 Posters 4 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 Offline
    A Offline
    Andy H
    wrote on last edited by
    #1

    Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

    C M D M S 8 Replies Last reply
    0
    • A Andy H

      Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      VB.NET is, IMO, a little too messy. It tries to maintain backwards code compatibility while still being a .NET language. The original modifications were watered down by VB programmers who complained loudly and in a whiny, nasally voice. C#, on the other hand, was designed from the groud up specifically for .NET. It's clean, has no skeletons in the closet, uses efficient C style syntax and even allows you to dive into fun stuff like unsafe code and pointers. C# is the true .NET language. The others are upgrades. cheers, Chris Maunder

      M S B N 4 Replies Last reply
      0
      • C Chris Maunder

        VB.NET is, IMO, a little too messy. It tries to maintain backwards code compatibility while still being a .NET language. The original modifications were watered down by VB programmers who complained loudly and in a whiny, nasally voice. C#, on the other hand, was designed from the groud up specifically for .NET. It's clean, has no skeletons in the closet, uses efficient C style syntax and even allows you to dive into fun stuff like unsafe code and pointers. C# is the true .NET language. The others are upgrades. cheers, Chris Maunder

        M Offline
        M Offline
        Megan Forbes
        wrote on last edited by
        #3

        Chris Maunder wrote: VB programmers who complained loudly and in a whiny, nasally voice :laugh:


        I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages

        M 1 Reply Last reply
        0
        • A Andy H

          Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

          M Offline
          M Offline
          Madhu _Cheriyedath
          wrote on last edited by
          #4

          I too agreed that VB.NET is a little messy..But sometimes people who never programmed in C family of languages (C++, Java etc) prefer to use the old VB style. Though VB.NET is not the old VB, some people prefer that. I personally prefer C# over VB.NET.. The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET. That also not very much...On the other hand C# gives more cleaner syntax...does not carry any baggage from old language(as in the case of VB.NET) Madhu.

          P 1 Reply Last reply
          0
          • A Andy H

            Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

            D Offline
            D Offline
            Daniel Turini
            wrote on last edited by
            #5

            Most future "sophisticated" features will be put first in C# or will not put in VB.NET at all, e.g., templates. Imagine a VB programmer, who daily does this for food:

            Dim i as Integer
            i = Text1

            Where Text1 is a TextBox which have a Text default property, of string type, which will be automagically converted to Integer. Can you imagine them using templates or defining iterators? No, and so won't Microsoft. My latest article: SQL Server DO's and DONT's[^]

            1 Reply Last reply
            0
            • A Andy H

              Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #6

              C# supports embedded XML to comment your code, which then can generate on-line reference documentation using FREE tools. VB.NET does not. Is that a good enough reason? Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
              Help! I'm an AI running around in someone's f*cked up universe simulator.

              M 1 Reply Last reply
              0
              • M Megan Forbes

                Chris Maunder wrote: VB programmers who complained loudly and in a whiny, nasally voice :laugh:


                I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #7

                Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                Help! I'm an AI running around in someone's f*cked up universe simulator.

                C M 2 Replies Last reply
                0
                • M Marc Clifton

                  C# supports embedded XML to comment your code, which then can generate on-line reference documentation using FREE tools. VB.NET does not. Is that a good enough reason? Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                  Help! I'm an AI running around in someone's f*cked up universe simulator.

                  M Offline
                  M Offline
                  Michael P Butler
                  wrote on last edited by
                  #8

                  Marc Clifton wrote: C# supports embedded XML to comment your code, Since when did VB programmer start commenting their code. Isn't their motto, it was easy to write so it must be easy to understand :-D Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling

                  R 1 Reply Last reply
                  0
                  • A Andy H

                    Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

                    S Offline
                    S Offline
                    Stephane Rodriguez
                    wrote on last edited by
                    #9

                    Beware of redistribution issues with VB.NET apps, especially those made from upgraded legacy VB code. I have heard of interop assemblies to be installed by hand.(in addition to the .NET virtual machine, which was in theory the common run-time for both VB.NET and C#).


                    Back to real work : D-16.

                    D 1 Reply Last reply
                    0
                    • M Marc Clifton

                      Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                      Help! I'm an AI running around in someone's f*cked up universe simulator.

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #10

                      Let's not have religious wars here. Please? cheers, Chris Maunder

                      M 1 Reply Last reply
                      0
                      • M Michael P Butler

                        Marc Clifton wrote: C# supports embedded XML to comment your code, Since when did VB programmer start commenting their code. Isn't their motto, it was easy to write so it must be easy to understand :-D Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling

                        R Offline
                        R Offline
                        Ryan Johnston 0
                        wrote on last edited by
                        #11

                        I'm tired of this. Since when did some one who spews VB become a programmer? Looking at VB "code" is like seeing someone throw up all over my screen. Ryan Johnston

                        M 1 Reply Last reply
                        0
                        • A Andy H

                          Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

                          D Offline
                          D Offline
                          David Wulff
                          wrote on last edited by
                          #12

                          Andy H wrote: whereas I prefer languages which use the semi-colon. That sounds so dirty. :-O I have nothing useful to input, as usual.


                          David Wulff http://www.davidwulff.co.uk

                          "Life, as well as software, has bugs." - Roger Wright

                          B 1 Reply Last reply
                          0
                          • S Stephane Rodriguez

                            Beware of redistribution issues with VB.NET apps, especially those made from upgraded legacy VB code. I have heard of interop assemblies to be installed by hand.(in addition to the .NET virtual machine, which was in theory the common run-time for both VB.NET and C#).


                            Back to real work : D-16.

                            D Offline
                            D Offline
                            Daniel Turini
                            wrote on last edited by
                            #13

                            If you have a COM DLL that calls a interop COM DLL: on C#, the IDE can handle this with a property (IIRC, "Wrapper Assembly Key File"). On VB.NET, you need to manually call tlbimp.exe. The problem is, sometimes tlbimp.exe does not recognizes a importlib("msadoxx.tlb") to ADO (don't ask me why) and generates an extraneous ADODB.DLL, intead of using the PIA. This causes the behaviour you mentioned. I had to do my own tlbImp to handle this. C# does this correctly, but we still have legacy VB code. My latest article: SQL Server DO's and DONT's[^]

                            1 Reply Last reply
                            0
                            • D David Wulff

                              Andy H wrote: whereas I prefer languages which use the semi-colon. That sounds so dirty. :-O I have nothing useful to input, as usual.


                              David Wulff http://www.davidwulff.co.uk

                              "Life, as well as software, has bugs." - Roger Wright

                              B Offline
                              B Offline
                              Brian Delahunty
                              wrote on last edited by
                              #14

                              David Wulff wrote: That sounds so dirty Only you could make that sound dirty Dave!!! ;P Regards, Brian Dela :-)

                              1 Reply Last reply
                              0
                              • C Chris Maunder

                                Let's not have religious wars here. Please? cheers, Chris Maunder

                                M Offline
                                M Offline
                                Marc Clifton
                                wrote on last edited by
                                #15

                                Let's not have religious wars here. Please? Yes sir. Sorry! (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                                Help! I'm an AI running around in someone's f*cked up universe simulator.

                                B C 2 Replies Last reply
                                0
                                • R Ryan Johnston 0

                                  I'm tired of this. Since when did some one who spews VB become a programmer? Looking at VB "code" is like seeing someone throw up all over my screen. Ryan Johnston

                                  M Offline
                                  M Offline
                                  Marc Clifton
                                  wrote on last edited by
                                  #16

                                  How do you do that cool red-to-black affect?!?!? (I don't have the time to look at the HTML code right now--maybe later!) Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                                  Help! I'm an AI running around in someone's f*cked up universe simulator.

                                  P 1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    Let's not have religious wars here. Please? Yes sir. Sorry! (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                                    Help! I'm an AI running around in someone's f*cked up universe simulator.

                                    B Offline
                                    B Offline
                                    Brian Delahunty
                                    wrote on last edited by
                                    #17

                                    Marc Clifton wrote: (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) Nah.. just that that sort of stuff in the lounge is a major no, no. Personally I think it's a major no, no on CP itself but the soapbox can turn up some weird stuff. Regards, Brian Dela :-)

                                    1 Reply Last reply
                                    0
                                    • M Marc Clifton

                                      Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                                      Help! I'm an AI running around in someone's f*cked up universe simulator.

                                      M Offline
                                      M Offline
                                      Megan Forbes
                                      wrote on last edited by
                                      #18

                                      Marc Clifton wrote: Help! I'm an AI running around in someone's f*cked up universe simulator This one still rocks! :-D


                                      I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages

                                      B 1 Reply Last reply
                                      0
                                      • M Madhu _Cheriyedath

                                        I too agreed that VB.NET is a little messy..But sometimes people who never programmed in C family of languages (C++, Java etc) prefer to use the old VB style. Though VB.NET is not the old VB, some people prefer that. I personally prefer C# over VB.NET.. The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET. That also not very much...On the other hand C# gives more cleaner syntax...does not carry any baggage from old language(as in the case of VB.NET) Madhu.

                                        P Offline
                                        P Offline
                                        Paul Watson
                                        wrote on last edited by
                                        #19

                                        Madhu _Cheriyedath wrote: The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET VB.NET has better intellisense than C#? How so?

                                        Paul Watson
                                        Bluegrass
                                        Cape Town, South Africa

                                        Colin Davies wrote: ...can you imagine a John Simmons stalker !

                                        D 1 Reply Last reply
                                        0
                                        • M Marc Clifton

                                          How do you do that cool red-to-black affect?!?!? (I don't have the time to look at the HTML code right now--maybe later!) Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                                          Help! I'm an AI running around in someone's f*cked up universe simulator.

                                          P Offline
                                          P Offline
                                          Paul Watson
                                          wrote on last edited by
                                          #20

                                          Marc Clifton wrote: How do you do that cool red-to-black affect?!?!? He used VB... ;P Actually here is the code to do it, looks like something a VB programmer would produce:

                                          <font color='#FF0000'>R</font>
                                          <font color='#EE0000'>y</font>
                                          <font color='#DD0000'>a</font>
                                          <font color='#CC0000'>n</font>
                                          <font color='#BB0000'>J</font>
                                          <font color='#AA0000'>o</font>
                                          <font color='#990000'>h</font>
                                          <font color='#880000'>n</font>
                                          <font color='#770000'>s</font>
                                          <font color='#660000'>t</font>
                                          <font color='#550000'>o</font>
                                          <font color='#440000'>n</font>

                                          * Relax Ryan! You ripped off VB programmers and opened yourself up, so am just poking fun at you :-D

                                          Paul Watson
                                          Bluegrass
                                          Cape Town, South Africa

                                          Colin Davies wrote: ...can you imagine a John Simmons stalker !

                                          R 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