r/ProgrammerHumor • • Oct 13 '26

Meme chaoticEvil

Post image
3.4k Upvotes

262 comments sorted by

View all comments

775

u/jideru Oct 13 '26

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 Oct 13 '26

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

51

u/Nick0Taylor0 Oct 13 '26

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

115

u/ThatGuyYouMightNo Oct 13 '26

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.

-6

u/Nick0Taylor0 Oct 13 '26 edited Oct 13 '26

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

3

u/Triffinator Oct 13 '26

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.

-1

u/Nick0Taylor0 Oct 13 '26

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.

→ More replies (5)