Clock, but its ORDER BY Hour DESC

386 points · 36 comments · view on lemmy.world

36 Comments

sunoc@sh.itjust.works · 45 pts · 294d (2 replies)

Still way better than the best LLMs can do

otacon239@lemmy.world · 16 pts · 294d (1 reply)

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 · 9 pts · 294d

Click on the question mark for an explanation

RogueBanana@piefed.zip · 37 pts · 294d

Isn't it ascending? Alphabetically I mean.

Jeeve65@ttrpg.network · 26 pts · 294d (5 replies)

You mean I, II, III, IV, IX, V, VI, VII, VIII, X, XI, XII

wischi@programming.dev · 2 pts · 293d
smeg@feddit.uk · 2 pts · 294d (3 replies)
[ removed ]
ChaoticNeutralCzech@feddit.org · 4 pts · 294d (2 replies)

Depends on where and when it's from, it's rare where I live. Also, makes no difference in terms of alphabetical sorting.

ulterno@programming.dev · 2 pts · 293d

It would, if it were:
I II III IIII IIIII IIIIII IIIIIII IIIIIIII IIIIIIIII IIIIIIIIII IIIIIIIIIII IIIIIIIIIIII


Also, if IX ended up being VIIII, it would end up sorting in numerical order.

smeg@feddit.uk · 1 pts · 294d
[ removed ]
wischi@programming.dev · 16 pts · 294d (2 replies)

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 · 2 pts · 293d (1 reply)

Your clock goes backwards.

wischi@programming.dev · 4 pts · 293d

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.

Senseless@feddit.org · 15 pts · 294d (3 replies)

Thanks, I hate it.

Barbarian@sh.itjust.works · 6 pts · 294d (2 replies)

Came to the comments to add exactly this. Am I predictable, or is this just the natural reaction to this image?

Senseless@feddit.org · 6 pts · 294d

Yes.

llii@discuss.tchncs.de · 2 pts · 294d

It is, I wanted to post this exact comment, too.

zr0@lemmy.dbzer0.com · 14 pts · 294d (3 replies)

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

gwl@lemmy.blahaj.zone · 2 pts · 294d (2 replies)

That depends on language

optissima@lemmy.ml · 2 pts · 294d (1 reply)

Finally a truly localised time

gwl@lemmy.blahaj.zone · 2 pts · 294d

I meant programming language, but yeah also true

gwl@lemmy.blahaj.zone · 9 pts · 294d (3 replies)

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

UnrepententProcrastinator@lemmy.ca · 2 pts · 293d (2 replies)

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

gwl@lemmy.blahaj.zone · 1 pts · 293d (1 reply)

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

ramjambamalam@lemmy.ca · 2 pts · 292d

Kitboga has some videos where he integrates Neal's password game into a fake bank password reset UI, and gets the scammers to play the game. It's one of the GOAT scambait videos.

Australis13@fedia.io · 6 pts · 293d (2 replies)

Somebody used the wrong data type for the Hour column...

AnotherPenguin@programming.dev · 2 pts · 293d (1 reply)

There are no wrong data types in javascript :D

YellowTraveller@lemmy.zip · 4 pts · 293d

There are no right data type in javascript*

MadhuGururajan@programming.dev · 5 pts · 294d (1 reply)

I wonder how it would look with excel sort

sp3ctr4l@lemmy.dbzer0.com · 2 pts · 294d

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.

jet@hackertalks.com · 4 pts · 294d (5 replies)

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

zr0@lemmy.dbzer0.com · 2 pts · 294d (4 replies)

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 · 2 pts · 294d (3 replies)

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.

frezik@lemmy.blahaj.zone · 1 pts · 294d (2 replies)

Depends on what you call a "computer". The first electronic calculating machine sold by the company now known as IBM was for the census, and it was prior to WWI.

Edit: we need to fight back on this idea that the military drives technological innovation. That's only true because of the shitty values our society has.

optissima@lemmy.ml · 1 pts · 294d (1 reply)

The German one?

frezik@lemmy.blahaj.zone · 1 pts · 294d

Hollerith was American-born to German immigrants. The census in question was also the 1890 US census.

It's a cool story. With the rise in population, the 1890 census was not predicted to be completed before they had to start the 1900 census. With Hollerith's machine, it was instead done in record time.

jlow@discuss.tchncs.de · 4 pts · 293d

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

getFrog@piefed.social · 1 pts · 294d

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!