r/ProgrammerHumor • • Oct 13 '26

Meme chaoticEvil

Post image
3.4k Upvotes

262 comments sorted by

View all comments

Show parent comment

8

u/Scientific_Artist444 Oct 13 '26

We had a similar problem in our enterprise application.

But pray tell me, what should the date be instead of today's date if I have no idea of your age?

11

u/darthlame Oct 13 '26

What’s the youngest you allow people to work at your company? Today’s date minus 18 years maybe?

2

u/Scientific_Artist444 Oct 13 '26

How about someone 30-40 years of age?

5

u/darthlame Oct 13 '26

They would only have to scroll through 12-22 years instead of 30-40. 🤷‍♀️

-1

u/Scientific_Artist444 Oct 13 '26

So one user has to scroll 20 years back, another doesn't have to scroll. That's not fair. User experience should be consistent for every user.

7

u/CardamomMountain Oct 13 '26

Set it to 100 years ago then the users waste time scrolling proportionate to the time they have left.

→ More replies (3)

2

u/obliviious Oct 14 '26

They probably feel like it's doing the all maths for the scared 16 y/os.

This form used to be the primary method of age restricting content online 👌

6

u/teivaz Oct 13 '26

If only we had a device that would allow us to enter date in just 6 key strokes

0

u/Kebein Oct 13 '26

yeah because the standard user knows about dateformatting and surely wont type in some stupid shit that breaks date parsing

3

u/YenzAstro Oct 14 '26

You can have an input that has separate sections for month/day/year

1

u/Hans_H0rst Oct 15 '26

That won't save your dumbest users.

4

u/experimental1212 Oct 13 '26

January 1, 1900

3

u/notacanuckskibum Oct 13 '26

Maybe 1/1/2000

Assuming the user is expected to be an adult then today’s date is never going to be close.

2

u/Cheezyrock Oct 14 '26

Or if they have to prove they age, then Jan 01 or exactly 17 years ago. This way underage persons dont get an auto click-through but the scroll is closer to where it needs to be.

3

u/VonLoewe Oct 13 '26

Don't pretend like you can't fingerprint it.

2

u/analogic-microwave Oct 13 '26

January 1st, 1970

2

u/CarefulCoderX Oct 14 '26

Easy, scrape as many employees info off LinkedIn you can find. Find the date they graduated high school/college. Take the difference between the current year and the year they graduated and add 22 or 18 depending on if you pulled high school or college graduation year. Take the median of the sample and pick August 15th since that’s the most common birth month.

4

u/Atralis Oct 14 '26

"Hey Bob isn't it a bit weird that 21% of the company was born on August 15 1987."

1

u/MissUnderstood_1 Oct 13 '26

RNG it. That way it could at least be close to right some of the time.

4

u/NiIly00 Oct 13 '26

Instructions unclear.

Replaced date picker with a button that rolls a random date and you click okay when it's correct.

3

u/EarlBeforeSwine Oct 14 '26 edited Oct 14 '26

Make it yes/no with confirmation, in case they accidentally click no… would be a shame to have to start all over again.

“Is 6 Jan 1912 your birthday?”

No

“Confirm: 6 Jan 1912 is not your birthday.”

No it is not

“Is 31 Jul 2025 your birthday?”

No

“Confirm: 31 Jul 2025 is not your birthday.”

…

1

u/_Its_Me_Dio_ Oct 14 '26

18 years ago people gonna lie anyway

1

u/Head-Bureaucrat Oct 14 '26

The age of the oldest person in the world so everyone has do scroll up?

1

u/Ruadhan2300 Oct 16 '26

Let me type it, and have the date picker as an alternative method for people who hate typing for some reason.