this post was submitted on 08 Nov 2025
219 points (97.0% liked)

Programmer Humor

27248 readers
872 users here now

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

founded 2 years ago
MODERATORS
 
top 25 comments
sorted by: hot top controversial new old
[–] flipflop97@discuss.tchncs.de 41 points 1 day ago (4 children)
[–] southernwolf@pawb.social 14 points 1 day ago

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

[–] satanmat@lemmy.world 1 points 21 hours ago

Oh my god. I love that so much.

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

[–] mogranja@lemmy.world 1 points 3 hours ago

You know, it looks like clocks drawn by dementia patients

[–] davidgro@lemmy.world 31 points 1 day ago (2 children)

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 18 points 1 day ago (2 children)

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.

[–] bdonvr@thelemmy.club 7 points 1 day ago (1 children)

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

[–] InnerScientist@lemmy.world 5 points 1 day ago (1 children)
[–] bdonvr@thelemmy.club 3 points 1 day ago

I'm not sure I'd argue binary is more or less "logical". A number is a number.

[–] ooterness@lemmy.world 4 points 1 day ago* (last edited 1 day 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.

collapsed inline media

[–] Deebster@infosec.pub 5 points 1 day ago* (last edited 1 day ago) (1 children)
[–] Agent641@lemmy.world 2 points 1 day ago

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

[–] Australis13@fedia.io 8 points 1 day ago (1 children)

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

[–] Agent641@lemmy.world 9 points 1 day ago (1 children)

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

[–] Australis13@fedia.io 6 points 1 day ago (1 children)

What's a little scope creep between friends?

[–] rikudou@lemmings.world 4 points 1 day ago (1 children)

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

[–] Australis13@fedia.io 3 points 1 day ago

There's something to be said for consistency!

[–] Routhinator@startrek.website 6 points 1 day ago

And then you added 1, right?

...right?

[–] palordrolap@fedia.io 6 points 1 day ago (1 children)

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

The clever documentation calls it "months since January".

[–] brotundspiele@sh.itjust.works 1 points 18 hours ago (1 children)

JavaScript: Hold my Date!

new Date().getYear() == 125

[–] palordrolap@fedia.io 2 points 17 hours 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.

[–] OpenStars@piefed.social 5 points 23 hours ago (1 children)

This clock starts at both one and at zero!

collapsed inline mediaimg

[–] gwl@lemmy.blahaj.zone 2 points 2 hours ago

Content not viewable in your region

[–] coreray00@discuss.online 2 points 22 hours ago

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