this post was submitted on 11 Feb 2025
689 points (100.0% liked)

Programmer Humor

428 readers
31 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

See the post on BlueSky: https://bsky.app/profile/provisionalidea.bsky.social/post/3lhujtm2qkc2i

According to many comments, the US government DOES use SQL, and Musk is not understanding much what's going on.

you are viewing a single comment's thread
view the rest of the comments
[–] codexarcanum@lemmy.dbzer0.com 160 points 2 weeks ago* (last edited 2 weeks ago) (4 children)

I'm sure folks on here know this, but you know, there's also that 10K a day that don't so...

What makes this especially funny, to me, is that SSN is the literal text book example (when I was in school anyway) of a "natural" key that you absolutely should never use as a primary key. It is often the representative example of the kinds of data that seems like it'd make a good key but will absolutely fuck you over if you do.

SSN is not unique to a person. ~~They get reused after death, and a person can have more than one in their lifetime (if your id is stolen and you arduously go about getting a new one).~~ Edit: (See responses) It seems I'm misinformed about SSNs, apologies. I have heard from numerous sources that they are not unique to a person, but the specifics of how it happens are unknown to me.

And they're protected information due to all the financials that rely on them, so you don't really want to store them at all (unless you're the SSA, who would have guessed that'd ever come up though!?)

It's so stupid that it would be hilarious if people weren't dying.

[–] senkora@lemmy.zip 40 points 2 weeks ago (2 children)

Small correction to an otherwise great explanation: SSNs are not recycled after death.

**Q20:  *Are Social Security numbers reused after a person dies?*****A:  No. We do not reassign a Social Security number (SSN) after the number holder's death. Even though we have issued over 453 million SSNs so far, and we assign about 5 and one-half million new numbers a year, the current numbering system will provide us with enough new numbers for several generations into the future with no changes in the numbering system.

https://www.ssa.gov/history/hfaq.html

[–] unexposedhazard@discuss.tchncs.de 22 points 2 weeks ago (2 children)

"Several generations" well that is fucking garbage

[–] KamikazeRusher@lemm.ee 34 points 2 weeks ago

Nah. It’s worked for 50 years and if we get another 30 then it’s done its job well. Government is supposed to review and adjust things as time goes on and Social Security Numbers weren’t intended to uniquely identify citizens. They probably expected an overhaul to be done by 2020.

They fact that we haven’t reworked portions of it and rely on SSNs to identify citizens shows that we haven’t had a forward-thinking Congress in the last 20 years at minimum.

[–] KillingTimeItself@lemmy.dbzer0.com 3 points 2 weeks ago (1 children)

well tbf, the standard coming from computing is doubling the bits until it stops being a problem, or with ipv6 practically having more IPs than there are atoms in the entire planet of earth (i think i did the calculation a while ago, and it was like, most of the atoms in earth, so like, not quite, but for all intents and purposes, might as well be)

[–] Trainguyrom@reddthat.com 2 points 2 weeks ago (1 children)

yeah that sounds about right, someone should make an XKCD search engine i think.

[–] invertedspear@lemm.ee 2 points 2 weeks ago (1 children)

So they’ve issued almost half the possible numbers, current US population is actively using 1/3rd of them. I think unless there is a major drop in birth rates “several generations” is two. Either my great grandkids will be reusing dead people SSNs or there will be 10 digit numbers which is going to be a problem for any systems that coded it as char(9).

[–] Trainguyrom@reddthat.com 1 points 2 weeks ago

Ongoing trends would indicate a significant drop in birth rate is extremely likely. Major cities will most likely be facing population shrinkage by the end of the century

[–] vormadikter@startrek.website 24 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Thanks for (starting to) explain this concept to people not accustomed to how the US does their shit.

See, where i live, we used to have for example a Tax-Number. That was a thing the taxdepartment used to identify a person. But if you move from city a to city b, that numbers changes. So if you move a lot, you will have numerous of these.
Now, some 15 years back, the Tax-ID was introduced (fellow residents at this point will lnow it might be Germany) and this number is a one-in-a-kind ID that will only be assigned to you. They create it shortly after birth. My sons first registraion ID was this, before anyrhing else. You will also get a uniqie healthcare-ID that also works like that.

So...how does that work in the US and why is habing a changing number that is not unique helpful? Or what is Elon not getting? I dont get it either because I dont know how this works for you.

Thanks in advance to shed light on this.

[–] seang96@spgrn.com 8 points 2 weeks ago

When you die your social is reused and assigned to someone else eventually. This is what makes it not unique. If something were to screw up in the process the new person could have debt from the prior person for example even though it is not their debt. Another concept common is using the last 4. There are so many conflicts when using just last 4 in a database its bad design.

[–] Maeve@kbin.earth 7 points 2 weeks ago

I don't know all the ways but my identity was stolen and I never knew until my attorney was looking at something else for me in conjunction with the social security commission where I lived, and it popped up under a different name. They then accessed my records using other information, and it was the same number. It took a long time to get it sorted. A few years.

[–] chicken@lemmy.dbzer0.com 2 points 2 weeks ago* (last edited 2 weeks ago)

(if your id is stolen and you arduously go about getting a new one)

I thought I had lost mine once and got a new SSN card, they don't give you a new number, it's the same number