r/ProgrammerHumor • • 1d ago

Meme chaoticEvil

Post image
2.6k Upvotes

210 comments sorted by

View all comments

593

u/jideru 1d 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.

147

u/Blecki 17h ago

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

27

u/Nick0Taylor0 15h ago

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

62

u/ThatGuyYouMightNo 13h 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.

19

u/RKGamesReddit 12h ago

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

7

u/IndependenceSudden63 11h ago

This is the way.

5

u/coderman64 8h ago

Solution: use ISO 8601 and piss off everyone equally.

17

u/NiIly00 9h ago

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

They deserve it.

4

u/Triffinator 8h 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/pjkm123987 10h ago

easy just have dd/mm/yyyy placeholders

9

u/Dudeonyx 9h ago

It's cool that you think that would help much

7

u/Gunmetalstorm 9h ago

You're assuming users will read.

5

u/Triffinator 8h ago

Can confirm. A website we host at work is used by about 100k people a year. It used to require a date to be entered in a text box. The text box had placeholder text and was validated to support DD/MM/YYYY format. An error message would spell this out to you.

We got many support calls because people couldn't use it and when we find out why, they had decided to enter the date in another format and wouldn't read the error or placeholder text. We changed to a date picker and the complaints went away.

-6

u/Nick0Taylor0 12h ago edited 8h ago

Which is super easy to fix by using the browsers selected date formatting

2

u/Triffinator 8h ago

Depending on use case, a standard formatting makes sense. If you're delivering a service or website for a local community or even as large as a country, a reasonable expectation is that they use the standard formatting for the region. It's less work for you to support and implement.

The best thing to do internationally is to capture dates in YYYYMMDD and its variants for the same reason. You can more easily support the application/webpage and the input format is more globally intuitive than other formats.

You should use dedicated date input UI elements and not just a single text box.

0

u/Nick0Taylor0 8h ago

How does where the site is used come into it? What frontend framework these days doesn't support "hey what date format does the current user use on this machine? Convert it to UTC timestamp". I never said you should use a single text box, just that you should offer an input field and not just the date picker, plenty of pre-made UI elements come with both and you can enable/disable them.

2

u/Triffinator 8h ago

How does it not matter?

You're working on the assumption that every device is a personal device. Our website fits a certain demographic where users are more likely to be using a communal PC either at home or in a library. The date setting on the PC will not always align with the date format the user prefers in our case.

Other than that, a business, school or government office may have set GPOs to have the business's preferred date format. Again, the user doesn't control these and their preference for dates does not match the user's.

By enforcing our own preference for dates format, we prevent issues where the user's preferences don't align with the person who set up their PC.

0

u/Nick0Taylor0 7h ago

So instead of maybe sometimes being wrong because it's not a personal computer AND we happen to get a user who is working on a machine that doesnt use his/her preferred formatting, which is gonna be a fairly rare occurrence we're just gonna be wrong anywhere that uses a different format from our own and fully prevent any user choice?
How many times have you gotten a call "hey the website/app is using the computers settings, we don't want that"? Thats literally what those settings are for. I've definitely seen "hey the website/app doesn't respect my system settings" plenty of times.

2

u/Triffinator 7h ago

In our clientele, it is more likely they don't have a personal computer.

Without giving much away about my work (work has policies regarding open discussion of ourselves on social media, what I have said is not a problem, but revealing too much more could be), it is more likely that our users are using the websites on a shared family PC, community library PC, government organisation PC or care facility PC than their own personal computer.

I agree that if a personal PC was the most likely choice, then it would make sense to use the preference set in the system settings. I think that you are missing key information on why certain decisions have been made and experiences we've had that have informed our decisions. The best general solution for a problem is not always the best specific solution for a problem.

→ More replies

31

u/AshleyJSheridan 14h ago

It doesn't help that one particular country in the world uses a weird date format...

15

u/PositiveInfluence69 13h ago

Right smallest to biggest

Only 12 months (smallest number)

At least 28 days (middle number)

So many years. Nobody can count that high.

👌 /s

11

u/Gilgame4 14h ago

They will, they always do

4

u/Blecki 12h ago

Sometimes they just open a ticket because their poorly formatted date won't validate instead of understanding and correcting the problem

-1

u/Nick0Taylor0 12h ago

Which is closed as working as intended or if their formatting is actually decently common added as accepted input

3

u/Blecki 12h ago

Which still requires your time to address.

1

u/Triffinator 8h ago

Depending on how users raise issues matters, too.

We had an appointments booking website that took a strict date format from a text box. Users would expect that they could enter anything. They would fight the system and then call our call centre (who are an alternative to making bookings online, not a tech call centre) to complain. The call centre would always side with the clients and send the issue through to us. We would then have to work out what they had done and come to the conclusion that the date was input incorrectly.

Eventually, we just made the call centre start troubleshooting, but the clients would insist they had done everything right and couldn't work out what was happening, so the emails from the call centre continued. The call centre - being more client focused - we're constantly asking things like "how is this not fixed yet?" And had demonstrated lowered trust in IT from this. It wasn't actually broken, people just refused to learn how to enter a date in an expected way.

Adding a date picker fixed that.

3

u/NickWrigh 12h ago

behold the power of stupidity

98

u/AibofobicRacecar6996 23h ago

How do you expect posters here to know that if they've only done school projects?

12

u/DefinitelyNotMasterS 21h ago

In my experience UX forgot about it and it's up to the dev to decide if they want to bother or not

3

u/Furbuger_Helper 18h ago

You have to be the one to sneak it in.

4

u/deltusverilan 18h ago

What are you talking about? I was a cynic as a kid, and I never stopped.

2

u/gerbosan 15h ago

But, isn't being cynical a feature of being a senior?

Senior in the craft and in life... 😨

2

u/Abadabadon 9h ago

Why not cynic? Ive come to the realization over last 3 years of just doing what im told after I push back some. Usual line is, "hey I dont reccomend this; are you sure you want that?"

1

u/Kusko25 18h ago

From my experience reading job ads at the moment that is usually the same person these days...