• Deebster@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    3 days ago

    Shouldn’t 2 be where 1 normally is, etc and 8 be at the top?

    edit: I see you’d posted a similar one a few days ago and that had the same thing. Off by one, an evergreen programming error!

    • meekah@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      12 hours ago

      Idk to me the top position is index 0, even though it’s labeled 12.

      Think about it this way: when a new day begins, where are the clock hands?

      • Deebster@infosec.pub
        link
        fedilink
        arrow-up
        0
        ·
        11 hours ago

        Indeed, which is why 8 should be at the top.

        The hours have been reassigned in reverse alphabetical order. This means the number which you hit at noon/midnight is “eight”.

        • meekah@discuss.tchncs.de
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          8 hours ago

          Except this is order by DESC, so the ‘lowest’ value (Two) goes on index zero, the second lowest (Twelve) goes on index 1, etc.

          • Deebster@infosec.pub
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            7 hours ago

            But that’s not how clocks work - when the day starts on a normal clock it’s not 1 o’clock straight away, there’s an hour that happens first. The label is at the end of the hour’s segment.

            Think about it this way: when a new day begins, where are the clock hands?

            I did, the hour hand would be pointing at the (end of the) final hour, which is now eight. The minute hand’s position is a whole different discussion.

    • Agent641@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 days ago

      Yeah it should, I am so fucking dumb I even get my deliberate errors wrong. I can’t take it any more!

      (I am the OP of the image, the OP of this thread just copied them from a different programmer humor com)