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. Say it ain't true!

Say it ain't true!

Scheduled Pinned Locked Moved The Lounge
31 Posts 18 Posters 5 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.
  • P PIEBALDconsult

    My wife just told me she heard a rumor that some elementary schools have stopped teaching subtraction. :sigh:

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

    You don't need subtraction. You just need to learn addition of negative numbers... :-\

    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
    -----
    Never argue with a fool. Onlookers may not be able to tell the difference.
    Mark Twain

    1 Reply Last reply
    0
    • Richard DeemingR Richard Deeming

      It's already worse than that - American buildings must be based on VB. The floor numbers are 1-based, with no sign of 0 (the ground floor) anywhere. :laugh:


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

      C Offline
      C Offline
      ChandraRam
      wrote on last edited by
      #21

      Are you saying VB is 1-based? :confused: Not as far as I know...

      Happiness will never come to those who fail to appreciate what they already have. -Anon

      Richard DeemingR 1 Reply Last reply
      0
      • C ChandraRam

        Are you saying VB is 1-based? :confused: Not as far as I know...

        Happiness will never come to those who fail to appreciate what they already have. -Anon

        Richard DeemingR Online
        Richard DeemingR Online
        Richard Deeming
        wrote on last edited by
        #22

        VB's legacy string functions certainly are:

        Strings.Mid Method (Microsoft.VisualBasic) | Microsoft Learn[^]:

        ' Creates text string.
        Dim testString As String = "Mid Function Demo"
        ' Returns "Mid".
        Dim firstWord As String = Mid(testString, 1, 3)
        ' Returns "Demo".
        Dim lastWord As String = Mid(testString, 14, 4)
        ' Returns "Function Demo".
        Dim midWords As String = Mid(testString, 5)


        "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

        C 1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          VB's legacy string functions certainly are:

          Strings.Mid Method (Microsoft.VisualBasic) | Microsoft Learn[^]:

          ' Creates text string.
          Dim testString As String = "Mid Function Demo"
          ' Returns "Mid".
          Dim firstWord As String = Mid(testString, 1, 3)
          ' Returns "Demo".
          Dim lastWord As String = Mid(testString, 14, 4)
          ' Returns "Function Demo".
          Dim midWords As String = Mid(testString, 5)


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

          C Offline
          C Offline
          ChandraRam
          wrote on last edited by
          #23

          Well... arrays are 0-based, afaik. I would argue, though... when asked for the first letter of your name, do you say "R" or "I" :)

          Happiness will never come to those who fail to appreciate what they already have. -Anon

          Richard DeemingR T 2 Replies Last reply
          0
          • C ChandraRam

            Well... arrays are 0-based, afaik. I would argue, though... when asked for the first letter of your name, do you say "R" or "I" :)

            Happiness will never come to those who fail to appreciate what they already have. -Anon

            Richard DeemingR Online
            Richard DeemingR Online
            Richard Deeming
            wrote on last edited by
            #24

            They are now; but VB.NET still declares arrays by specifying the upper bound, rather than the length, because of the legacy syntax. :)

            Arrays - Visual Basic | Microsoft Learn[^]

            ' Declare a single-dimension array of 5 numbers.
            Dim numbers(4) As Integer

            In VB6 and earlier, you could use:

            Dim numbers(1 To 42)

            which would create an array with 1-based indices. The lower bound was optional, and the default could be changed by using the Option Base setting, leading to confusing code with hard to find bugs.


            "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

            C 1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming

              They are now; but VB.NET still declares arrays by specifying the upper bound, rather than the length, because of the legacy syntax. :)

              Arrays - Visual Basic | Microsoft Learn[^]

              ' Declare a single-dimension array of 5 numbers.
              Dim numbers(4) As Integer

              In VB6 and earlier, you could use:

              Dim numbers(1 To 42)

              which would create an array with 1-based indices. The lower bound was optional, and the default could be changed by using the Option Base setting, leading to confusing code with hard to find bugs.


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

              C Offline
              C Offline
              ChandraRam
              wrote on last edited by
              #25

              Richard Deeming wrote:

              The lower bound was optional, and the default could be changed by using the Option Base setting, leading to confusing code with hard to find bugs.

              This is definitely a problem, I agree.

              Happiness will never come to those who fail to appreciate what they already have. -Anon

              1 Reply Last reply
              0
              • P PIEBALDconsult

                My wife just told me she heard a rumor that some elementary schools have stopped teaching subtraction. :sigh:

                B Offline
                B Offline
                BernardIE5317
                wrote on last edited by
                #26

                rather amazing w/ a simple visual / graphical proof : "Can you change a sum by rearranging its numbers? --- The Riemann Series Theorem" https://www.youtube.com/watch?v=U0w0f0PDdPA[^]

                1 Reply Last reply
                0
                • T trønderen

                  Definitely worth seeing! It really hits the nail on the head. I guess that pointing out in which ways would violate the rules of The Lounge.

                  N Offline
                  N Offline
                  Nelek
                  wrote on last edited by
                  #27

                  trønderen wrote:

                  I guess that pointing out in which ways would violate the rules of The Lounge.

                  That's why I just shared the video and said nothing else :rolleyes: :-D

                  M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                  1 Reply Last reply
                  0
                  • C ChandraRam

                    Well... arrays are 0-based, afaik. I would argue, though... when asked for the first letter of your name, do you say "R" or "I" :)

                    Happiness will never come to those who fail to appreciate what they already have. -Anon

                    T Offline
                    T Offline
                    trønderen
                    wrote on last edited by
                    #28

                    Young software people of today believe that 0-based arrays is a law of nature, just like 1+1=2 (or possibly 11, in some interpreted, weakly typed languages). They never programmed in Pascal, Algol, Ada, Fortran, APL ... An aside: A Korean guy told me that in Korean culture, a person's age is 1-based (besides being based on a moon calendar): The first 12 months (/moons) of a baby's life, he is 1 years old. After completing one year, starting on the second, he is two. In older European prose it is not uncommon to see wordings such as "When I was in my fourteenth year", which means at age 13. Also, centuries are 1-based.

                    1 Reply Last reply
                    0
                    • R RickZeeland

                      To keep up with modern trends they are now teaching subversion :-\

                      G Offline
                      G Offline
                      Gary Wheeler
                      wrote on last edited by
                      #29

                      Aw c'mon dammit... I'm just learning git and now you want to learn that?

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      • P PIEBALDconsult

                        My wife just told me she heard a rumor that some elementary schools have stopped teaching subtraction. :sigh:

                        R Offline
                        R Offline
                        Roger Wright
                        wrote on last edited by
                        #30

                        Not surprising, since the snowflakes avoid anything negative, whether it involves reality or not.

                        Will Rogers never met me.

                        P 1 Reply Last reply
                        0
                        • R Roger Wright

                          Not surprising, since the snowflakes avoid anything negative, whether it involves reality or not.

                          Will Rogers never met me.

                          P Offline
                          P Offline
                          PIEBALDconsult
                          wrote on last edited by
                          #31

                          We are all snowflakes, hence the term.

                          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