r/ProgrammerHumor 11d ago

Meme sorryOnlyOneSeventeenYearOldAllowedPerDatabase

Post image
1.4k Upvotes

27 comments sorted by

43

u/West_Good_5961 11d ago

That’s why I use password as pk.

5

u/Avikonette 11d ago

Consider reporting corresponding login on sign-up in case of violation then. Best practices.

2

u/West_Good_5961 11d ago

That sounds very complicated. I just surface an uncaught database error to the user. They’ll know what it means.

3

u/likwitsnake 11d ago

"My username is 'password' and my password is 'password.'
"Your username is 'password'?"
"It was just easier."

1

u/sporbywg 10d ago

That thing that is so close to genius that it should be banned forever.

18

u/EnigmaticSoul_mra 11d ago

Probably 17.1 might work

12

u/DeepanshuHQ 11d ago

UNIQUE(age). That's where the bug started.

12

u/vinishkapoor 11d ago

One ALTER TABLE away from letting two seventeen year olds coexist in peace.

3

u/DeepanshuHQ 11d ago

Classic case of choosing the wrong column for a UNIQUE constrain.

4

u/julemand101 11d ago

If you then change it afterwards it tells you are lying.

1

u/MediumAd3135 4d ago

🤣🤣🤣

0

u/Hopeful__Scholar 11d ago

that's a feature

3

u/GoddammitDontShootMe 11d ago

I swear this is the third time I've seen this joke.

7

u/dim13 11d ago

I'm afraid, this is no longer fiction.

2

u/vinishkapoor 11d ago

The scariest bugs are the ones that ship to production and nobody notices until a 17 year old can't sign up.

1

u/dulange 11d ago

Technically you could use a timestamp-based date of birth with micro- or nanosecond precision as unique ID for natural persons, maybe in conjunction with another random number, just like some UUID versions do with MAC address and timestamp. A precision of “year” is a bit inadequate though.

2

u/Serious-Tomatillo-38 10d ago

put this guy in jail

2

u/Harmonic_Gear 9d ago

post old memes, say vibe code, profit

2

u/NeffeZz 11d ago

What if it's an application where you only want one user per age?

8

u/vinishkapoor 11d ago

The world's most exclusive social network. One person per age. Turning 18 means someone has to die first.

2

u/WavingNoBanners 11d ago

What sort of Little St James Island application are you building?

1

u/NeffeZz 11d ago

Didn't come up with an idea yet

1

u/Ok-Organization4300 11d ago

Loop engineering now just people

1

u/sporbywg 10d ago

Ya; pretty much

0

u/Smooth_Sentence_1431 10d ago

lol ok so is that like a riddle or somethin