this post was submitted on 20 Sep 2024
88 points (89.3% liked)

Programmer Humor

37254 readers
132 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
all 27 comments
sorted by: hot top controversial new old
[–] eruchitanda@lemmy.world 98 points 10 months ago (2 children)

yyyy-mm-dd and confusion no more.

[–] batcheck@lemmy.world 43 points 10 months ago

This. On top of being obvious at a glance, your file names and folder names sort nicely if use this format.

[–] spankmonkey@lemmy.world 14 points 10 months ago (1 children)

Until Y10k rears its ugly head.

[–] WhyDoYouPersist@lemmy.world 4 points 10 months ago

Why is no one talking about this??? Ostriches in the sand...

[–] GammaGames@beehaw.org 33 points 10 months ago (1 children)

Good taste, YYYY-MM-DD is obviously superior

[–] lugal@sopuli.xyz 7 points 10 months ago

I too agree with the woman

[–] davel@lemmy.ml 31 points 10 months ago (2 children)

ISO-8601 / RFC-3339 is clearly superior, but at least DD/MM/YYYY has a rational ordering, unlike MM/DD/YYYY.

[–] thejoker954@lemmy.world 3 points 10 months ago (1 children)

Dont know if it's true or not, but I always assumed it was because the numbers get bigger left to right. Only 12 months, 30ish days, thousands of years.

[–] davel@lemmy.ml 7 points 10 months ago

My guess is it’s because that’s the order in which we usually say dates in English: September twentieth, twenty-twenty-four.

[–] xmunk@sh.itjust.works -1 points 10 months ago

I, too, am an 8601 enthusiast. Stupid America means we need to go y-m-d for date ordering to not be ambiguous.

[–] gravitas_deficiency@sh.itjust.works 14 points 10 months ago (2 children)

Why do some people insist on doing big-endian dates? Little-endian (YYYY-MM-DD) is trivially alphanumerically sortable. Also, it’s part of the goddamn ISO standard for standardized date format.

[–] Atelopus-zeteki@fedia.io 7 points 10 months ago

Which is why the guy in the comic will "die single".

[–] willismcpherson@fedia.io 3 points 10 months ago

You've got your endians mixed up. Big-endian means the most significant value comes first. ISO8601 is big-endian.

[–] RedWeasel@lemmy.world 13 points 10 months ago (1 children)

The perfect date is YYYY/MM/DD. US and every where else conflict with DD/MM/YYYY & MM/DD/YYYY.

[–] deegeese@sopuli.xyz 29 points 10 months ago (1 children)

Path separators in my date strings? Hell no!

[–] Zachariah@lemmy.world 3 points 10 months ago (1 children)

Sanitize your inputs. Become delimiter agnostic!

[–] deegeese@sopuli.xyz 2 points 10 months ago (1 children)

I control the date format, why would I choose something that requires additional logic to handle?

[–] Zachariah@lemmy.world 1 points 10 months ago (1 children)

RedWeasel loaded slashes into your stream today though.

[–] deegeese@sopuli.xyz 1 points 10 months ago

This is a discussion about choice of date format, not choice of date parser.

[–] cyborganism@lemmy.ca 9 points 10 months ago
[–] SlopppyEngineer@lemmy.world 9 points 10 months ago
[–] Bishma@discuss.tchncs.de 8 points 10 months ago (1 children)

Unix epoch time. It has a cool name and I get to pretend its a Star Date.

[–] deegeese@sopuli.xyz 1 points 10 months ago

Are we on schedule to solve the 2038 problem in time?

[–] setsneedtofeed@lemmy.world 5 points 10 months ago (1 children)
[–] gravitas_deficiency@sh.itjust.works 3 points 10 months ago* (last edited 10 months ago)

lol this is so cursed, I love it.

Now include time, with tz offsets

[–] davel@lemmy.ml 3 points 10 months ago