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. C# over VB.net

C# over VB.net

Scheduled Pinned Locked Moved The Lounge
csharpcareer
15 Posts 11 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.
  • V V 0

    VB is pure evil ! :laugh: (And my sigh makes you agree immediately ;P)

    V.
    (MQOTD rules and previous solutions)

    OriginalGriff wrote:

    V is absolutely right

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #5

    No, that's the problem. It's not evil - it's just not very good. But...it seems "OK" and it's easy to teach - which is not the same as easy to learn - and that means that lazy teachers use it because it gives them less to do... :sigh: And then the students escape into the real world and - it being the only thing they know - carry on using it, despite the problems it causes, and because they know no better they assume that it's horrible weaknesses are in fact it's strengths. So they defend it to the death despite having nothing useful to compare it with.

    Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    V 1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      VB isn't a bad language - it's just is too wordy and weakly typed - it makes decisions for you that C# won't and that can get you into lots of (run-time) trouble that C# catches at compile time. VB also still has ON ERROR RESUME NEXT for which it should be buried in quicklime and left to rot... Having said that, I code in C# - and use online translators for the very occasional times when I need it in VB...

      Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #6

      Once upon a time, my company decided to bring our code base from DOS to Windows. We bought 3 months in the local Microsoft DNA Lab (DNA - Distributed Network Application) to learn about our chances. At the very first meeting Microsoft's expert outlined a working framework, that in it's center there was the - then new - Visual Studio 6, and recommended VB6 as the best option we have. We believed him and started to prototype the new system. After two and a half day we started to hit barriers from every direction. After two weeks we just moved to C++. The funny thing is that our original - DOS - code was in C++, so we was able to reuse a lot of it without any change...

      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        No, that's the problem. It's not evil - it's just not very good. But...it seems "OK" and it's easy to teach - which is not the same as easy to learn - and that means that lazy teachers use it because it gives them less to do... :sigh: And then the students escape into the real world and - it being the only thing they know - carry on using it, despite the problems it causes, and because they know no better they assume that it's horrible weaknesses are in fact it's strengths. So they defend it to the death despite having nothing useful to compare it with.

        Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

        V Offline
        V Offline
        V 0
        wrote on last edited by
        #7

        You DID notice the "joke" icon, right? :)

        V.
        (MQOTD rules and previous solutions)

        OriginalGriff wrote:

        V is absolutely right

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          VB isn't a bad language - it's just is too wordy and weakly typed - it makes decisions for you that C# won't and that can get you into lots of (run-time) trouble that C# catches at compile time. VB also still has ON ERROR RESUME NEXT for which it should be buried in quicklime and left to rot... Having said that, I code in C# - and use online translators for the very occasional times when I need it in VB...

          Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

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

          One thing that I like with VB over C#: No need for all the friggin' brackets and semicolons. :) I fail to see why any program language in the 21st century needs a line terminator... :doh:

          Anything that is unrelated to elephants is irrelephant
          Anonymous
          -----
          The problem with quotes on the internet is that you can never tell if they're genuine
          Winston Churchill, 1944
          -----
          I'd just like a chance to prove that money can't make me happy.
          Me, all the time

          OriginalGriffO B M 3 Replies Last reply
          0
          • J Johnny J

            One thing that I like with VB over C#: No need for all the friggin' brackets and semicolons. :) I fail to see why any program language in the 21st century needs a line terminator... :doh:

            Anything that is unrelated to elephants is irrelephant
            Anonymous
            -----
            The problem with quotes on the internet is that you can never tell if they're genuine
            Winston Churchill, 1944
            -----
            I'd just like a chance to prove that money can't make me happy.
            Me, all the time

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #9

            That's one of the advantages of C# over VB - it doesn't need a line continuation character, because it has a statement terminator! (In exactly the same way, and for the same reason, as an English sentence does). :laugh:

            Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            D 1 Reply Last reply
            0
            • J Johnny J

              One thing that I like with VB over C#: No need for all the friggin' brackets and semicolons. :) I fail to see why any program language in the 21st century needs a line terminator... :doh:

              Anything that is unrelated to elephants is irrelephant
              Anonymous
              -----
              The problem with quotes on the internet is that you can never tell if they're genuine
              Winston Churchill, 1944
              -----
              I'd just like a chance to prove that money can't make me happy.
              Me, all the time

              B Offline
              B Offline
              BobJanova
              wrote on last edited by
              #10

              Semicolons aren't line terminators, you can have a single statement spread over multiple lines, and multiple statements on one line. Both can be useful when statements are very long or short respectively (though coding standards tend to ban the latter because they're stuck in 1990 when lines had to be really short).

              1 Reply Last reply
              0
              • J Johnny J

                One thing that I like with VB over C#: No need for all the friggin' brackets and semicolons. :) I fail to see why any program language in the 21st century needs a line terminator... :doh:

                Anything that is unrelated to elephants is irrelephant
                Anonymous
                -----
                The problem with quotes on the internet is that you can never tell if they're genuine
                Winston Churchill, 1944
                -----
                I'd just like a chance to prove that money can't make me happy.
                Me, all the time

                M Offline
                M Offline
                Mitchell J
                wrote on last edited by
                #11

                Although compilers don't need line terminators, I actually really like them because they help me read my code :-) They provide my eyes with a clear "stop going left and move down" signal.

                Richard DeemingR 1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  That's one of the advantages of C# over VB - it doesn't need a line continuation character, because it has a statement terminator! (In exactly the same way, and for the same reason, as an English sentence does). :laugh:

                  Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

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

                  They have been implicit [^]for about 4 years now...

                  1 Reply Last reply
                  0
                  • M Mitchell J

                    Although compilers don't need line terminators, I actually really like them because they help me read my code :-) They provide my eyes with a clear "stop going left and move down" signal.

                    Richard DeemingR Offline
                    Richard DeemingR Offline
                    Richard Deeming
                    wrote on last edited by
                    #13

                    CarefulCoder wrote:

                    "stop going left and move down"

                    You read your code right-to-left in Australia? :omg:


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                    1 Reply Last reply
                    0
                    • G GateKeeper22

                      I started programming .net in VB and I didn't understand why all the C# programmers complained about how bad vb.net programmers are. Then I got a new job programming in C#. I did that for about 4 years and took a new job that was back in vb.net. I now understand why C# programmers were complaining. I now dislike vb.net programmers just like they did. I really miss programming in C# at work.

                      U Offline
                      U Offline
                      User 5775657
                      wrote on last edited by
                      #14

                      There must be a full moon, the Microsoft haters are out complaining again about VB. C# is a Microsoft product that was created less than 10 years ago about the same age some C# programmers behave. It was adopted into the .net framework which is by the way in VB land. While you C# code-cist, Microsoft haters enjoy Visual Studio, another tool in VB land there isn’t that much difference between any language except for its intended use and the implementation. I write C# and VB and many other languages to get the job done. Anytime I need to translate between these two languages I use a tool like the Telerike Convertor and find that the differences are very small. About as small as the issues that you bring up. But I have heard it all before, you have VB code examples that are very poorly done just like JavaScript. Maybe when you C# Microsoft haters have been around as long as VB then there may be some poor examples that will turn up as well. I have add enough of the rubberneckers in this forum and closing my account down.

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        VB isn't a bad language - it's just is too wordy and weakly typed - it makes decisions for you that C# won't and that can get you into lots of (run-time) trouble that C# catches at compile time. VB also still has ON ERROR RESUME NEXT for which it should be buried in quicklime and left to rot... Having said that, I code in C# - and use online translators for the very occasional times when I need it in VB...

                        Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

                        G Offline
                        G Offline
                        GateKeeper22
                        wrote on last edited by
                        #15

                        I agree 100% with this. Would also like to add that VB has a poor implementation of Linq and Lambdas. And I really can't stand Option Explicit and Option Strict. Shouldn't even be an option, they should always be on.

                        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