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. Visual Basic.NET Exceeded C# Popularity in TIOBE in July 2018

Visual Basic.NET Exceeded C# Popularity in TIOBE in July 2018

Scheduled Pinned Locked Moved The Lounge
csharpdatabasecom
88 Posts 31 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.
  • OriginalGriffO OriginalGriff

    georani wrote:

    Visual Basic.NET is a great programming language

    Nothing which includes

    On Error Resume Next

    Can be described as great, or even as a programming language.

    Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

    G Offline
    G Offline
    georani
    wrote on last edited by
    #23

    Quote:

    On Error Resume Next

    There is no this kind of code in VB NET. Study more.

    Try

        x = x \\ y
        MessageBox.Show("end of Try block")
    
    Catch ex As Exception
        MessageBox.Show(ex.Message)
        MessageBox.Show("Stack Trace: " & vbCrLf & ex.StackTrace)
    
    Finally
        MessageBox.Show("in Finally block")
    End Try
    
    OriginalGriffO 1 Reply Last reply
    0
    • G georani

      Quote:

      On Error Resume Next

      There is no this kind of code in VB NET. Study more.

      Try

          x = x \\ y
          MessageBox.Show("end of Try block")
      
      Catch ex As Exception
          MessageBox.Show(ex.Message)
          MessageBox.Show("Stack Trace: " & vbCrLf & ex.StackTrace)
      
      Finally
          MessageBox.Show("in Finally block")
      End Try
      
      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #24

      Rather than going with an opinion, I'd suggest that you check the facts instead:

      Module Module1

      Sub Main()
          On Error Resume Next
      
          Console.WriteLine("Hello World!")
          Console.ReadLine()
      End Sub
      

      End Module

      Just because Try...Catch blocks are there, doesn't mean the old ways aren't. But then, facts never mean anything to the faithful, do they?

      Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "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

      G 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Rather than going with an opinion, I'd suggest that you check the facts instead:

        Module Module1

        Sub Main()
            On Error Resume Next
        
            Console.WriteLine("Hello World!")
            Console.ReadLine()
        End Sub
        

        End Module

        Just because Try...Catch blocks are there, doesn't mean the old ways aren't. But then, facts never mean anything to the faithful, do they?

        Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        G Offline
        G Offline
        georani
        wrote on last edited by
        #25

        OK, C# has GOTO, and now?

        for (int i = 0; i < x; i++)
        {
        for (int j = 0; j < y; j++)
        {
        if (array[i, j].Equals(myNumber))
        {
        goto Found;
        }
        }
        }

            Console.WriteLine("The number {0} was not found.", myNumber);
            goto Finish;
        
        Found:
            Console.WriteLine("The number {0} is found.", myNumber);
        
        Finish:
            Console.WriteLine("End of search.");
        
        OriginalGriffO 1 Reply Last reply
        0
        • L Lost User

          georani wrote:

          but more fun and readable to program with

          :omg:

          G Offline
          G Offline
          georani
          wrote on last edited by
          #26

          Yes fun e readable. Please compare this VB.NET code:

          Public Class MyClass1
          Public Property Mynumber As Integer = 3
          End Class

          With This C# equivalent

          public class MyClass1
          {
          public int Mynumber {get; set;} = 3;
          }

          I Think VB.NET is more readable and fun.

          L OriginalGriffO 2 Replies Last reply
          0
          • G georani

            OK, C# has GOTO, and now?

            for (int i = 0; i < x; i++)
            {
            for (int j = 0; j < y; j++)
            {
            if (array[i, j].Equals(myNumber))
            {
            goto Found;
            }
            }
            }

                Console.WriteLine("The number {0} was not found.", myNumber);
                goto Finish;
            
            Found:
                Console.WriteLine("The number {0} is found.", myNumber);
            
            Finish:
                Console.WriteLine("End of search.");
            
            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #27

            And VB doesn't? Yes it does have goto - because there are occasions when you need it. But outside a student's homework submitted to a lazy teacher I've not seen - let alone used - goto once in the "real world". Face it: VB is based on a language designed for people who can't code, don't want to code, and have no interest in quality. It still has those early days buried deep in it's fabric: the On Error rubbish, the weak typing, the lack of need to declare anything. Those aren't strengths, they are contributing factors to poor maintainability which are designed right into the language. That's why C# is the way it is: it encourages the production of more robust and understandable code. Yes, you can produce good code in VB - but you have to treat it more like C# to do it and do all the work yourself!

            Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

            "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

            G 1 Reply Last reply
            0
            • G georani

              Visual Basic.NET is a great programming language, so powerful as C#, but more fun and readable to program with it. So finally after so many years VB.NET has surpassed C# in TIOBE Index (July 2018) See Picture Here (July 2018) www.tiobe.com/tiobe-index/

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #28

              Thank you for reinforcing my belief that TIOBE INDEX doesn't mean squat all.

              1 Reply Last reply
              0
              • G georani

                Yes fun e readable. Please compare this VB.NET code:

                Public Class MyClass1
                Public Property Mynumber As Integer = 3
                End Class

                With This C# equivalent

                public class MyClass1
                {
                public int Mynumber {get; set;} = 3;
                }

                I Think VB.NET is more readable and fun.

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

                georani wrote:

                I Think VB.NET is more readable and fun.

                And I am sure there are many more who agree. But if you learned C# first then you would (as I do) hold the complete opposite view. And as in all such surveys, the actual results are generally totally meaningless and useless.

                1 Reply Last reply
                0
                • G georani

                  Visual Basic.NET is a great programming language, so powerful as C#, but more fun and readable to program with it. So finally after so many years VB.NET has surpassed C# in TIOBE Index (July 2018) See Picture Here (July 2018) www.tiobe.com/tiobe-index/

                  K Offline
                  K Offline
                  kmoorevs
                  wrote on last edited by
                  #30

                  You are a brave soul, starting a flame war here where everybody knows that VB in any form is despised. Those who practice this black art should be ridiculed and burned at the stake! :laugh: However, I did take the time to check the link and see that the study and results make no claim about which language is best. Looking at the results, I'd guess that these are the languages that are most popular for CS students. That said, I actually agree the VB.NET is a great programming language, but as you've seen, not that well regarded here at CP albeit for some dubious reasons.

                  "Go forth into the source" - Neal Morse

                  G C 2 Replies Last reply
                  0
                  • G georani

                    Yes fun e readable. Please compare this VB.NET code:

                    Public Class MyClass1
                    Public Property Mynumber As Integer = 3
                    End Class

                    With This C# equivalent

                    public class MyClass1
                    {
                    public int Mynumber {get; set;} = 3;
                    }

                    I Think VB.NET is more readable and fun.

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

                    Now write the VB equivalent of this C#

                    public class MyClass1
                    {
                    public int Mynumber {get; private set;} = 3;
                    }

                    Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                    "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

                    G 1 Reply Last reply
                    0
                    • OriginalGriffO OriginalGriff

                      And VB doesn't? Yes it does have goto - because there are occasions when you need it. But outside a student's homework submitted to a lazy teacher I've not seen - let alone used - goto once in the "real world". Face it: VB is based on a language designed for people who can't code, don't want to code, and have no interest in quality. It still has those early days buried deep in it's fabric: the On Error rubbish, the weak typing, the lack of need to declare anything. Those aren't strengths, they are contributing factors to poor maintainability which are designed right into the language. That's why C# is the way it is: it encourages the production of more robust and understandable code. Yes, you can produce good code in VB - but you have to treat it more like C# to do it and do all the work yourself!

                      Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                      G Offline
                      G Offline
                      georani
                      wrote on last edited by
                      #32

                      Quote:

                      Face it: VB is based on a language designed for people who can't code, don't want to code, and have no interest in quality. It still has those early days buried deep in it's fabric: the On Error rubbish, the weak typing, the lack of need to declare anything.

                      False assertion, you can produce bad or good code in VB.NET or C #, the choice is yours.

                      Quote:

                      the weak typing, the lack of need to declare anything.

                      False assertion, you just use

                      Option Strict On

                      at start of your VB.NET code. Study more, please, did you heard about Python?

                      Sander RosselS N 2 Replies Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Now write the VB equivalent of this C#

                        public class MyClass1
                        {
                        public int Mynumber {get; private set;} = 3;
                        }

                        Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                        G Offline
                        G Offline
                        georani
                        wrote on last edited by
                        #33

                        Done:

                        Public Class MyClass1
                            Private \_Mynumber As Integer = 3
                        
                            Public Property Mynumber() As Integer
                                Get
                                    Return \_Mynumber
                                End Get
                                Private Set(value As Integer)
                                    \_Mynumber = value
                                End Set
                            End Property
                        End Class
                        

                        This C# equivalent:

                        public class MyClass1
                        {
                        public int Mynumber {get; private set;} = 3;
                        }

                        It's shorter, but not fun or more readable.

                        OriginalGriffO 1 Reply Last reply
                        0
                        • K kmoorevs

                          You are a brave soul, starting a flame war here where everybody knows that VB in any form is despised. Those who practice this black art should be ridiculed and burned at the stake! :laugh: However, I did take the time to check the link and see that the study and results make no claim about which language is best. Looking at the results, I'd guess that these are the languages that are most popular for CS students. That said, I actually agree the VB.NET is a great programming language, but as you've seen, not that well regarded here at CP albeit for some dubious reasons.

                          "Go forth into the source" - Neal Morse

                          G Offline
                          G Offline
                          georani
                          wrote on last edited by
                          #34

                          Quote:

                          I did take the time to check the link and see that the study and results make no claim about which language is the best.

                          Check that link again ant the title also, it is not about which is best, it is about popularity.

                          K D 2 Replies Last reply
                          0
                          • G georani

                            Done:

                            Public Class MyClass1
                                Private \_Mynumber As Integer = 3
                            
                                Public Property Mynumber() As Integer
                                    Get
                                        Return \_Mynumber
                                    End Get
                                    Private Set(value As Integer)
                                        \_Mynumber = value
                                    End Set
                                End Property
                            End Class
                            

                            This C# equivalent:

                            public class MyClass1
                            {
                            public int Mynumber {get; private set;} = 3;
                            }

                            It's shorter, but not fun or more readable.

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

                            georani wrote:

                            not fun or more readable.

                            Who are you trying to kid? Yourself? :laugh:

                            Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                            "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

                            G 1 Reply Last reply
                            0
                            • L Lost User

                              georani wrote:

                              so powerful as C#, but more fun and readable to program with it.

                              C# is a cleaned up version of VB. "Fun" you say. I say there's a lot of hobbyists. Aaaw, the fun of cleaning up after them - so much, I regularly refuse to :thumbsup:

                              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

                              G Offline
                              G Offline
                              georani
                              wrote on last edited by
                              #36

                              Quote:

                              C# is a cleaned up version of VB.

                              No, it is not, C# comes from The Delphi creator Anders Hejlsberg (Click to see Wikipedia article)

                              Quote:

                              "Fun" you say. I say there's a lot of hobbyists.

                              There are a lot of commercial and industrial software made with VB.NET

                              L B 2 Replies Last reply
                              0
                              • G georani

                                Quote:

                                I did take the time to check the link and see that the study and results make no claim about which language is the best.

                                Check that link again ant the title also, it is not about which is best, it is about popularity.

                                K Offline
                                K Offline
                                kmoorevs
                                wrote on last edited by
                                #37

                                I know how to read. :) I was agreeing with you.

                                georani wrote:

                                I did take the time to check the link and see that the study and results make no claim about which language is best.

                                georani wrote:

                                Check that link again ant the title also, it is not about which is best, it is about popularity.

                                You see how we kinda said the same thing there?

                                "Go forth into the source" - Neal Morse

                                1 Reply Last reply
                                0
                                • OriginalGriffO OriginalGriff

                                  georani wrote:

                                  not fun or more readable.

                                  Who are you trying to kid? Yourself? :laugh:

                                  Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                                  G Offline
                                  G Offline
                                  georani
                                  wrote on last edited by
                                  #38

                                  Quote:

                                  Who are you trying to kid? Yourself?

                                  I Think this: This code:

                                  Public Property Mynumber() As Integer
                                  Get
                                  Return _Mynumber
                                  End Get
                                  Private Set(value As Integer)
                                  _Mynumber = value
                                  End Set
                                  End Property

                                  Is more readable and more safe than this shorter and equivalent C# code:

                                  public int Mynumber {get; private set;} = 3;

                                  If you read fast, you can make mistakes when reading this C# code, and anyone can understand VB version, even non programmers, but if you are not a C# programmer what the hell is "{get; private set;} = 3"?

                                  OriginalGriffO 1 Reply Last reply
                                  0
                                  • G georani

                                    Quote:

                                    C# is a cleaned up version of VB.

                                    No, it is not, C# comes from The Delphi creator Anders Hejlsberg (Click to see Wikipedia article)

                                    Quote:

                                    "Fun" you say. I say there's a lot of hobbyists.

                                    There are a lot of commercial and industrial software made with VB.NET

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

                                    georani wrote:

                                    No, it is not, C# comes from The Delphi creator Anders Hejlsberg (Click to see Wikipedia article)

                                    Which could be translated by search and replace into VB.NET; built on the newer VB runtime. Instead of running P-code, we now have the .NET runtime.

                                    georani wrote:

                                    There are a lot of commercial and industrial software made with VB.NET

                                    Yes, by "professional beginners" :D

                                    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

                                    G 1 Reply Last reply
                                    0
                                    • L Lost User

                                      georani wrote:

                                      No, it is not, C# comes from The Delphi creator Anders Hejlsberg (Click to see Wikipedia article)

                                      Which could be translated by search and replace into VB.NET; built on the newer VB runtime. Instead of running P-code, we now have the .NET runtime.

                                      georani wrote:

                                      There are a lot of commercial and industrial software made with VB.NET

                                      Yes, by "professional beginners" :D

                                      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

                                      G Offline
                                      G Offline
                                      georani
                                      wrote on last edited by
                                      #40

                                      Quote:

                                      Which could be translated by search and replace into VB.NET; built on the newer VB runtime. Instead of running P-code, we now have the .NET runtime.

                                      False! False assertion, study more, do some research, try Wikipedia. VB is an old language, VB.NET is another and newer language completely different, you cannot compile OLD VB code to .NET, but you can easily convert VB.NET code to C# code or vice versa, they have similar structure.

                                      L 1 Reply Last reply
                                      0
                                      • G georani

                                        Quote:

                                        Who are you trying to kid? Yourself?

                                        I Think this: This code:

                                        Public Property Mynumber() As Integer
                                        Get
                                        Return _Mynumber
                                        End Get
                                        Private Set(value As Integer)
                                        _Mynumber = value
                                        End Set
                                        End Property

                                        Is more readable and more safe than this shorter and equivalent C# code:

                                        public int Mynumber {get; private set;} = 3;

                                        If you read fast, you can make mistakes when reading this C# code, and anyone can understand VB version, even non programmers, but if you are not a C# programmer what the hell is "{get; private set;} = 3"?

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

                                        You're getting pretty desperate now...

                                        Sent from my Amstrad PC 1640 Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                                        "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

                                        A 1 Reply Last reply
                                        0
                                        • G georani

                                          Quote:

                                          I did take the time to check the link and see that the study and results make no claim about which language is the best.

                                          Check that link again ant the title also, it is not about which is best, it is about popularity.

                                          D Offline
                                          D Offline
                                          Dave Kreskowiak
                                          wrote on last edited by
                                          #42

                                          According to TIOBE's own methodology description, it's about the number of hits returned by a very specific search query, NOT THE ACTUAL USE OF THE LANGUAGE. They go through a bunch of search engines and type +"_language_ programming" into the engine, then grab the "number of results returned". That is an ARBITRARY thing to search for. For example, on Google.com, the following results are turned:

                                          +"C# programming"        ~  7,250,000 results
                                          +"VB.NET programming"    ~    228,000 results
                                          
                                          +"C#"                    ~111,000,000 results
                                          +"VB.NET"                ~ 24,800,000 results
                                          

                                          The number of hits returned is just a number of pages that mention the search terms. That's all. The pages can be anything, including the documentation from MSDN, forum post questions, answers, complaints, "do my homework for me", resumes, job postings, ... ANYTHING. It is is NO WAY a representation of the "use popularity" of the languages, only their mentions in web pages.

                                          Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                                          Dave Kreskowiak

                                          G P 2 Replies 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