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. Born programmer?

Born programmer?

Scheduled Pinned Locked Moved The Lounge
question
50 Posts 29 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

    Eddy Vluggen wrote:

    Where do the buttons prefixed with C lead to?

    An alternate dimension.

    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

    X Offline
    X Offline
    xiecsuk
    wrote on last edited by
    #18

    Or the crematorium?? But then that is an alternate dimension!!

    M 1 Reply Last reply
    0
    • I Indivara

      Overheard today (kids talking in the back seat) Elder: What number is the lowest floor in the building? (referring to place we just left) Younger: Zeroth floor Elder: No it is the first floor! Younger: No, zeroth floor! (this goes on for some time) Younger is 5. :)

      O Offline
      O Offline
      obs123
      wrote on last edited by
      #19

      It should be obvious - Array index (in most of the cases) starts normally from 0. That explain a lot! :)

      1 Reply Last reply
      0
      • L Lost User

        0 is ground level. A floor is above ground level, and anything else is wrong. If 1 was ground floor, 0 would be in the ground. Then it would stop making sense to even count negative.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

        M Offline
        M Offline
        maze3
        wrote on last edited by
        #20

        a floor is a floor. A floor is the walking surface of a room or vehicle. if you have 2 floors is your list, I mean building! How many items in your Building? 2 floors. And so the first floor in your building is the [0] item, no, i mean [0] floor. As such it is Ground Floor. And the 2nd item in your building is the 1st Floor. See, simple.

        1 Reply Last reply
        0
        • I Indivara

          Overheard today (kids talking in the back seat) Elder: What number is the lowest floor in the building? (referring to place we just left) Younger: Zeroth floor Elder: No it is the first floor! Younger: No, zeroth floor! (this goes on for some time) Younger is 5. :)

          N Offline
          N Offline
          ngoj
          wrote on last edited by
          #21

          I don't think this is about floors, look at the title again. And, yes of course, you can not learn coding unless you were born programmer. Zero floor approach is a good sign, the younger kid is the one of us!

          1 Reply Last reply
          0
          • X xiecsuk

            Or the crematorium?? But then that is an alternate dimension!!

            M Offline
            M Offline
            Magrat
            wrote on last edited by
            #22

            Actually you'd enter the 'Twilight Zone'.

            1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              Eddy Vluggen wrote:

              Where do the buttons prefixed with C lead to?

              An alternate dimension.

              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

              A Offline
              A Offline
              Alister Morton
              wrote on last edited by
              #23

              The cellars? Much more gothic than the basements.

              1 Reply Last reply
              0
              • I Indivara

                It gets worse actually Mezzanine is M. Roof is R or RF. Basement is B or BF when only one level is underground. Platform is P, except when it is Parking. Sometimes the car park floors are closer together and get separate numbers P1 onwards, which correspond to different floor numbers of the building. And sometimes they are labelled in Japanese, making a ride on the elevator more adventurous. :D

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

                Too confusing, I'll be taking the stairs.

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                1 Reply Last reply
                0
                • I Indivara

                  Overheard today (kids talking in the back seat) Elder: What number is the lowest floor in the building? (referring to place we just left) Younger: Zeroth floor Elder: No it is the first floor! Younger: No, zeroth floor! (this goes on for some time) Younger is 5. :)

                  D Offline
                  D Offline
                  den2k88
                  wrote on last edited by
                  #25

                  In Italy gorund floor is 0, then there are first, second and so on.

                  GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

                  1 Reply Last reply
                  0
                  • K Kiriander

                    It gets weirder: Some countries have different way to count floors. In Russia, the ground floor is the first floor. So a building with 3 floors has floors 1 to 3. In Germany, the ground floor is called the ground floor and the second floor is called the first floor. So a three-floor building would have floors 0 (ground) to 2. At least, there's a word for "above-ground floor" which I use.

                    D Offline
                    D Offline
                    den2k88
                    wrote on last edited by
                    #26

                    Useful, as it answers the real question: how many flights of stairs I have to climb? 0, 1, 2.

                    GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

                    1 Reply Last reply
                    0
                    • X xiecsuk

                      Come on Griff, there is nothing wrong with the Imperial system of measurement. 12 inches in a foot 3 feet in a yard 1760 yards in a mile Makes perfect sense to me.

                      K Offline
                      K Offline
                      Kirk 10389821
                      wrote on last edited by
                      #27

                      IF we had 12 toes and 12 Fingers... THEN this Imperial System would make sense! Worse, 11 and 12 should be NAMED: One-Teen, and Two-Teen, but NO, the TEENS did not start until 13. It is NO WONDER we are dead last in math :-)

                      J C X 3 Replies Last reply
                      0
                      • K Kirk 10389821

                        IF we had 12 toes and 12 Fingers... THEN this Imperial System would make sense! Worse, 11 and 12 should be NAMED: One-Teen, and Two-Teen, but NO, the TEENS did not start until 13. It is NO WONDER we are dead last in math :-)

                        J Offline
                        J Offline
                        James Curran
                        wrote on last edited by
                        #28

                        Kirk 10389821 wrote:

                        IF we had 12 toes and 12 Fingers... THEN this Imperial System would make sense! It is NO WONDER we are dead last in math

                        IF we had 12 toes and 12 Fingers... Math would be easy. 10 can be divided by 2 and 5 only. 12 can be divided by 2,3,4 and 6.

                        Truth, James

                        K 1 Reply Last reply
                        0
                        • I Indivara

                          Overheard today (kids talking in the back seat) Elder: What number is the lowest floor in the building? (referring to place we just left) Younger: Zeroth floor Elder: No it is the first floor! Younger: No, zeroth floor! (this goes on for some time) Younger is 5. :)

                          V Offline
                          V Offline
                          Vark111
                          wrote on last edited by
                          #29

                          All y'all saying that ground floor = 0 are correct. All y'all saying that ground floor = first are also correct. It's just that in many countries, floors are identified by an index (0) whereas in the US (and a few other places I surmise) floors are identified with a label ("first"). Different UI concerns, that.

                          1 Reply Last reply
                          0
                          • F Forogar

                            I have this problem in the US where they seem to think the ground floor is the first floor and the first floor is the second floor, etc. Weird. It doesn't seem to matter how many times I try to correct them, they still keep getting it wrong!

                            - I would love to change the world, but they won’t give me the source code.

                            T Offline
                            T Offline
                            TNCaver
                            wrote on last edited by
                            #30

                            When you walk into a multi-storied building from street level, what is the first floor you enter? (Hint: the answer is in the question.) See? We 'Merkans have some logic to our madness. :)

                            If you think 'goto' is evil, try writing an Assembly program without JMP.

                            F 1 Reply Last reply
                            0
                            • T TNCaver

                              When you walk into a multi-storied building from street level, what is the first floor you enter? (Hint: the answer is in the question.) See? We 'Merkans have some logic to our madness. :)

                              If you think 'goto' is evil, try writing an Assembly program without JMP.

                              F Offline
                              F Offline
                              Forogar
                              wrote on last edited by
                              #31

                              The ground floor, obviously! The first floor above that is the "first floor", etc. Duh! ;P

                              - I would love to change the world, but they won’t give me the source code.

                              R T 2 Replies Last reply
                              0
                              • I Indivara

                                Overheard today (kids talking in the back seat) Elder: What number is the lowest floor in the building? (referring to place we just left) Younger: Zeroth floor Elder: No it is the first floor! Younger: No, zeroth floor! (this goes on for some time) Younger is 5. :)

                                U Offline
                                U Offline
                                User 12657022
                                wrote on last edited by
                                #32

                                Younger is using a zero index array and will struggle with the fence-post errors in later life.

                                1 Reply Last reply
                                0
                                • J James Curran

                                  Kirk 10389821 wrote:

                                  IF we had 12 toes and 12 Fingers... THEN this Imperial System would make sense! It is NO WONDER we are dead last in math

                                  IF we had 12 toes and 12 Fingers... Math would be easy. 10 can be divided by 2 and 5 only. 12 can be divided by 2,3,4 and 6.

                                  Truth, James

                                  K Offline
                                  K Offline
                                  Kirk 10389821
                                  wrote on last edited by
                                  #33

                                  James, And that, my friend, is why they CHOSE 12 as the base. (and why 13 is the first TEEN) It was literally a base 12 approach. It was a lot easier to divide whole things up. But their foresightedness ended there abruptly. The system does not scale well. Much like Roman Numerals. They work. They are obvious enough, but they get worse and worse. What was that last Superbowl Number? (In Roman Numerals). Try doing division in Roman Numerals. Without converting back and forth. Pure fun. On the other hand. 10 is not more natural than any other number. I challenge people to define time in terms of a metric system that works! (So that 1 day = 10 hrs. 1 hr = 10 minutes, and 1 minute = 10 seconds. 1 month = 10 days, and 1 year = 10 months). Boy that would be fabulous. Of course, we would have to stop using the SUN as a clock, LOL.

                                  R J 2 Replies Last reply
                                  0
                                  • K Kirk 10389821

                                    James, And that, my friend, is why they CHOSE 12 as the base. (and why 13 is the first TEEN) It was literally a base 12 approach. It was a lot easier to divide whole things up. But their foresightedness ended there abruptly. The system does not scale well. Much like Roman Numerals. They work. They are obvious enough, but they get worse and worse. What was that last Superbowl Number? (In Roman Numerals). Try doing division in Roman Numerals. Without converting back and forth. Pure fun. On the other hand. 10 is not more natural than any other number. I challenge people to define time in terms of a metric system that works! (So that 1 day = 10 hrs. 1 hr = 10 minutes, and 1 minute = 10 seconds. 1 month = 10 days, and 1 year = 10 months). Boy that would be fabulous. Of course, we would have to stop using the SUN as a clock, LOL.

                                    R Offline
                                    R Offline
                                    Ralph Little
                                    wrote on last edited by
                                    #34

                                    Roman numerals were awful. There's nothing particularly special about 10 as a base, though. It is most likely because we have 10 fingers. The problem with Roman Numerals is that it is an inconsistent implementation. You could easily have a base 12. You just need 12 numerals.

                                    1 Reply Last reply
                                    0
                                    • F Forogar

                                      The ground floor, obviously! The first floor above that is the "first floor", etc. Duh! ;P

                                      - I would love to change the world, but they won’t give me the source code.

                                      R Offline
                                      R Offline
                                      Ralph Little
                                      wrote on last edited by
                                      #35

                                      I guess it depends what you define as "floor" I guess. Here in Canada (ex-pat Brit here) there are inconsistent implementations. I have seen: 1) Lobby, First floor, ... 2) Lobby, second floor, ... 3) Mezzanine, first floor, ... And of course it is quite common to miss floor 13, as I guess some consider 13 unlucky.

                                      H 1 Reply Last reply
                                      0
                                      • F Forogar

                                        The ground floor, obviously! The first floor above that is the "first floor", etc. Duh! ;P

                                        - I would love to change the world, but they won’t give me the source code.

                                        T Offline
                                        T Offline
                                        TNCaver
                                        wrote on last edited by
                                        #36

                                        Yes, the ground floor is the first floor. I really don't see the problem. By the way, I've seen it both ways in America. Some buildings have a G for ground, and 1 for the floor above it. Others just have 1 for ground floors. The real question is, should there be a 13th floor? Or should it skip from 12 to 14? :-D

                                        If you think 'goto' is evil, try writing an Assembly program without JMP.

                                        1 Reply Last reply
                                        0
                                        • L Lost User

                                          Indivara wrote:

                                          The ones below the ground are B1, B2 etc, increasing downwards.

                                          As does any modern hospital. I was wondering why there was a sudden need of a character-prefix. Where do the buttons prefixed with C lead to?

                                          Indivara wrote:

                                          My point was that kids don't usually count from zero (unless they were C programmers in a previous incarnation?)

                                          It is not a point of from "where" to start counting, as to count "what is". Youngest is right. Go stand outside. That's 0 floors. You are at "level 0". Yes, build a floor, we'll call that one. Dig, and we'll call it -1. The latter is counting, but the first is merely a statement of what is if you go outside - 0 floors!

                                          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                                          R Offline
                                          R Offline
                                          Ralph Little
                                          wrote on last edited by
                                          #37

                                          Agreed. I think some folk are confusing counting floors, with counting ceilings :D

                                          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