• wischi@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    3 hours ago

    Because an image is a bit to lazy IMHO for “prgrammer” humor. I programmed a clock that actually works. Have fun 🤣

    https://jsfiddle.net/gjpwf5oq/2/

    Btw: you can change the order of the clock-face if you want, maybe I’ll implement the roman numerals preset next 🤣

  • zr0@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    10
    ·
    5 hours ago

    Order by string desc would be Z-A ordering, or 9-0

    ORDER BY str(Hour) DESC: 9, 8, 7, 6, 5, 4, 3, 2, 12, 11, 10, 1

    ORDER BY int(Hour) DESC: 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1

  • jet@hackertalks.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 hours ago

    This is why the military uses 03 hundred hours… Makes things clear, and sortable regardless of your algorithm

    • zr0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      Sure. No one ever in this entire world ever did a int(“0200”), because it is insane to represent numbers as actual numbers. I am so glad that military invented a standard working with any algorithm.

      • sp3ctr4l@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        4 hours ago

        I mean, I hear you, but to be fair, I think the military has been using that kind of a timing convention since before computing even really existed.

        … We did more or less invent modern computers, initially, to compute artillery ranging tables.

        I’m pretty sure that predates even the concept of … a string vs int data type.

    • otacon239@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      7 hours ago

      Kimi and Deepseek both seem to do a decent job.

      Something funky is going on. They’re somewhat random each time I refresh. Sometimes they work, sometimes they don’t.

    • sp3ctr4l@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      Probably a bunch of error messages relating to improperly executed macro scripts, failed external api calls, and maybe copilot demanding you put all your documents into one drive… and also somehow the same ‘hey, do you have a moment?’ Teams message from one person, but somehow on 2 or 3 different versions of Teams, simultaneously.

  • getFrog@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 hours ago

    Print that header onto the dial in a monospace font and you’ve got yourself an extremely marketable product. Perfect thing to bring to a white elephant gift exchange at an IT Company!