Crony's Dungeon
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@infosec.pub to Programmer Humor@programming.dev · 1 day ago

Clock, but its ORDER BY Hour DESC

infosec.pub

message-square
16
link
fedilink
312

Clock, but its ORDER BY Hour DESC

infosec.pub

cm0002@infosec.pub to Programmer Humor@programming.dev · 1 day ago
message-square
16
link
fedilink
alert-triangle
You must log in or register to comment.
  • Australis13@fedia.io
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    Somebody used the wrong data type for the Hour column…

    • AnotherPenguin@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 hour ago

      There are no wrong data types in javascript :D

  • jlow (he / him)@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    6 hours ago

    Now do a clock version of the weird American date format, mm/dd/yyyy? Maybe it has to be digital?

    mm:ss:hh? But obviously dont use 24h

  • gwl@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    5 hours ago

    Makes me wonder if there’s an equivalent of /r/BadUXBattles loved that Reddit

    Edit: couldn’t find one, made one

    !baduibattles@lemmy.blahaj.zone

    • ForeverComical@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      8 hours ago

      Then you’ll love this video https://youtu.be/TOzEnwl7LkA

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

        Makes me think of the https://neal.fun/ one for passwords

  • wischi@programming.dev
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    12 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.

    Update: Supports arbitrary text now (example roman numerals): https://jsfiddle.net/2o97k6vz/6/

    Update: And with Months because why not 🤣 https://jsfiddle.net/2o97k6vz/7/

    • RiQuY@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      12 hours ago

      Your clock goes backwards.

      • wischi@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        12 hours ago

        That’s intended. Look at the second hand for a minute. It goes 1, 2, 3, etc. like on a real clock but the numbers are distributed differently. That’s also why the hands sometimes have to move faster to reach their target in time. It goes (backwards) if it’s closer.

  • RogueBanana@piefed.zip
    link
    fedilink
    English
    arrow-up
    33
    ·
    1 day ago

    Isn’t it ascending? Alphabetically I mean.

  • Sunoc@sh.itjust.works
    link
    fedilink
    arrow-up
    34
    ·
    edit-2
    1 day ago

    Still way better than the best LLMs can do

    • otacon239@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      21 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.

      • kambusha@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        20 hours ago

        Click on the question mark for an explanation

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

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

  • MadhuGururajan@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    22 hours ago

    I wonder how it would look with excel sort

  • getFrog@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    19 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!

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: !programmer_humor@programming.dev

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.

  • 794 users / day
  • 4.45K users / week
  • 7.64K users / month
  • 17.4K users / 6 months
  • 1 local subscriber
  • 27.2K subscribers
  • 1.71K Posts
  • 52.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org