lemmy.onlylans.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Agent641@lemmy.world to Programmer Humor@programming.dev · 3 days ago

Clock but we saved DB space by just returning the index of the array of DigitNames

lemmy.world

message-square
35
fedilink
267

Clock but we saved DB space by just returning the index of the array of DigitNames

lemmy.world

Agent641@lemmy.world to Programmer Humor@programming.dev · 3 days ago
message-square
35
fedilink
alert-triangle
You must log in or register to comment.
  • YiddishMcSquidish@lemmy.today
    link
    fedilink
    English
    arrow-up
    3
    ·
    24 hours ago

    Undecimal supremacy!

  • Philip Goto@discuss.tchncs.de
    link
    fedilink
    arrow-up
    64
    ·
    3 days ago

    Clock but it’s made by an LLM:

    https://clocks.brianmoore.com/

    • YiddishMcSquidish@lemmy.today
      link
      fedilink
      English
      arrow-up
      4
      ·
      24 hours ago

      What an acid trip of a site. It updated while I was scrolling and legit thought I was having a flashback.

      • JustARegularNerd@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        24 hours ago

        I ran into the same thing - they seem to change (potentially to other outputs from the same model?) when you click on the Question mark and go back.

        • Derpgon@programming.dev
          link
          fedilink
          arrow-up
          5
          ·
          23 hours ago

          Question mark says they are updated every minute, even gives you a prompt.

          Watching for several minutes, none of then was good except Kimi K2. Sure, not every time, but solid third of them was actually working, while the others scored a perfect 0.

          Also, as a Kimi K2 user (because Kagi), I approve. I don’t use Kimi K2 for coding, though, because JetBrains doesn’t offer that, but I use it in Kagi Assistant.

          • tyler@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            22 hours ago

            deepseek v3.1 had an (almost) perfect clock once for me.

    • mogranja@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      You know, it looks like clocks drawn by dementia patients

    • Southern Wolf@pawb.social
      link
      fedilink
      arrow-up
      22
      ·
      3 days ago

      Lol, this both shows how bad most models are… But also how damn good the two big OSS models are, DeepSeek and Kimi.

    • Whelks_chance@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      3 days ago

      Amazing

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

      Oh my god. I love that so much.

      Now I need to do that but randomize which one is displayed ….

  • davidgro@lemmy.world
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    3 days ago

    That really is more logical. (Except that the initial element generally goes in the top slot of the clock. Note that 12 is the first hour both of AM and of PM.)

    • NateNate60@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      3 days ago

      A strictly logical clock for a 24-hour day would have 0 at the top with 1 on the right and 23 on the left. And it would be only ever set to UTC.

      • ooterness@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        2 days ago

        UTC has leap seconds. We can do better. PTP/TAI for lyfe.

        A perfectly logical clock would use a radio broadcast to count off seconds since a predefined epoch. Put a few of them way up high, so more people can see it, and make them so astonishingly precise that you could tell where you are just by listening.

        • IngeniousRocks (They/She) @lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          They should put atomic clocks in the GPS satellites for exactly this purpose.

      • bdonvr@thelemmy.club
        link
        fedilink
        arrow-up
        8
        ·
        3 days ago

        A strictly logical 24 hour clock would just display the digits tbh.

        • InnerScientist@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          3 days ago

          In binary

          • bdonvr@thelemmy.club
            link
            fedilink
            arrow-up
            4
            ·
            2 days ago

            I’m not sure I’d argue binary is more or less “logical”. A number is a number.

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

      @[email protected] right now

      man in a red t-shirt screaming I can't win

      (image proxy seems broken, it’s this gif)

      • Agent641@lemmy.worldOP
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago

        Look away, I don’t want you to see me cry

  • OpenStars@piefed.social
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    This clock starts at both one and at zero!

    img

    • gwl@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Content not viewable in your region

      • MrScottyTay@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        16 hours ago

        Imgur have blocked the uk because they don’t want to have to deal with ID shit our government pushed through without properly thinking it through

        • gwl@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          22 hours ago

          Ah, I must have forgotten to turn my VPN back on

      • OpenStars@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        That’s odd. Here is the URL - https://i.imgur.com/YAGpXPd.png - it’s just straight-up an imgur image. This is literally the first time I am hearing that this can happen to imgur images.:-(

        The image is the speechless stick figure meme. Here, I found another source:

        img

        That seems not very welcoming to exclude people from viewing such images!

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    Wait until you learn how months are numbered in some programming languages.

    The clever documentation calls it “months since January”.

    • optional@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      JavaScript: Hold my Date!

      new Date().getYear() == 125

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        2
        ·
        2 days ago

        JavaScript is in that set of “some” languages. Most of it ties back to C’s struct tm which zero-indexes months (0-11), weekdays (0-6), and the rarely used day of year (0-365), as well as offsetting years by 1900.

        The odd man out, so to speak, is the date (or “mday” as it’s called there), which is in the range 1-31. One (Perl) book I own suggests that the zero-based ones are used to index arrays of strings and implies this one is different because it generally isn’t used that way.

        But anyway, these are decisions made 50 years ago that still haunt us.

  • Routhinator@startrek.website
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    And then you added 1, right?

    …right?

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 hours ago

      Not very future proof, what if the “numbers” eventually no longer become numbers?

  • Australis13@fedia.io
    link
    fedilink
    arrow-up
    8
    ·
    3 days ago

    Well, if we’re saving DB space, why not just use the generate_series function (assuming you’re running PostgreSQL…)?

    • Agent641@lemmy.worldOP
      link
      fedilink
      arrow-up
      9
      ·
      3 days ago

      Hey man, shoulda coulda woulda, was it in the spec?

      • Australis13@fedia.io
        link
        fedilink
        arrow-up
        6
        ·
        3 days ago

        What’s a little scope creep between friends?

        • Rikudou_Sage@lemmings.world
          link
          fedilink
          arrow-up
          4
          ·
          3 days ago

          Why limit it to friends? In my company, we do scope creep for everyone!

          • Australis13@fedia.io
            link
            fedilink
            arrow-up
            3
            ·
            3 days ago

            There’s something to be said for consistency!

  • coreray00@discuss.online
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    Everything’s an entity if you really think about it 😔

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 804 users / day
  • 3.6K users / week
  • 8.85K users / month
  • 19.1K users / 6 months
  • 1 local subscriber
  • 27.3K subscribers
  • 1.89K Posts
  • 71.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org