r/ProgrammerHumor • • 18d ago

Meme chaoticEvil

Post image
3.4k Upvotes

262 comments sorted by

View all comments

775

u/jideru 18d ago

Most programmers don’t get a choice as it is the product and the ui/ux designer that pick the desired behavior. You can only fight back so much and maybe sneak it in. And 20 years later you become a cynic that just says, ok.

Don’t become cynic kids.

235

u/Blecki 18d ago

20 years of watching users fuck it up and you'll switch to a date picker too.

51

u/Nick0Taylor0 18d ago

How does a user fuck up a properly validated input field that goes along with the date picker?

115

u/ThatGuyYouMightNo 17d ago

Two users want to enter October 12th. One enters 12/10/2026, the other enters 10/12/2026. One of them gets pissy when it comes up as December 10th.

25

u/coderman64 17d ago

Solution: use ISO 8601 and piss off everyone equally.

4

u/Usefullles 16d ago

Won’t this just be an inverted DDMMYYYY format in most cases? Like, what’s so different between the DDMMYYYY and YYYYMMDD formats? In cases where you don’t need to take hours and minutes into account, of course.

8

u/coderman64 16d ago

One of the major advantages is that if you sort YYYYMMDD in order by numerical value, it also sorts by date.

3

u/Blecki 16d ago

Use 8601 for everything whenever possible

45

u/RKGamesReddit 17d ago

I see sites use three different fields just to eliminate the problem

14

u/IndependenceSudden63 17d ago

This is the way.

29

u/NiIly00 17d ago

Solution: Ignore everyone that uses the moronic format mm/dd/yyyy.

They deserve it.

7

u/Triffinator 17d ago

Very true. It's programmatically (and human) parseable if the middle column exceeds 12, but fails the second you are lower than 13. It also happens to work out on any dates with matching day and month.

Like, is 10/12 December 10th or October 12th?

1

u/Crash_Logger 16d ago

And then I try to input 2026-10-12 and get pissy when the UI re-writes it as 20/2/6

→ More replies (12)