this post was submitted on 11 Feb 2025
1246 points (98.6% liked)

Programmer Humor

20743 readers
323 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.

(page 9) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 95 points 1 week ago (3 children)

Elon starting to comment on technical matters was the moment I learned he was actually completely beyond incompetent, since I have some actual expertise on the subject. Right around the time he bought Twitter and commented publicly on its architecture.

This is further evidence to that point

load more comments (3 replies)
[–] [email protected] 205 points 1 week ago* (last edited 1 week ago) (51 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.

load more comments (51 replies)
[–] [email protected] 12 points 1 week ago

You guys are idiots, they use dbeaver and pgadmin not sql.. Or maybe its Acess yes they use Acess

[–] [email protected] 10 points 1 week ago (1 children)

I'm sure he has an alternative, like tattooing it on the forearms of 'undesirables'.

[–] [email protected] 1 points 1 week ago

Too expensive. Just put this sticker of a lolipop on your shirt.

[–] [email protected] 4 points 1 week ago

He is the embodiment of big-money trolling in politics, right?

[–] [email protected] 17 points 1 week ago (2 children)

Seemingly every interaction this man has with a normal person is him finding newer and more interesting ways of declaring himself an absolute moron.

How the fuck is he the de facto president of the USA?

[–] [email protected] 1 points 1 week ago

A lot of people decided not to vote this time. A lot of other people belived stupid shit their lighted rectangle told them.

load more comments (1 replies)
[–] [email protected] 20 points 1 week ago (1 children)

Also that's not how deduplication works.

He means/thinks that SSN is not unique (which is not a problem, just different design).

Of course he's wrong about lots of stuff, just the nerd in me could not not explain it.

[–] [email protected] 11 points 1 week ago* (last edited 1 week ago) (1 children)

I imagine he’s looking at a payments table where there is a non-unique key to relate a citizen to each payment.

load more comments (1 replies)
[–] [email protected] 31 points 1 week ago

SSNs are literally just handed out to hospitals and social security offices in batches and given out in sequential order. They were specifically and intentionally designed to be a terrible system of ID numbers because people actually used to care about their privacy. There are countless people who've gone their whole lives using the wrong social security number and gotten their benefits just fine, because unlike everyone else in this dumpster fire of a country the social security office has never been stupid enough to rely on just a single number.

[–] [email protected] 17 points 1 week ago* (last edited 1 week ago)

I've worked on projects for the government as a contractor. There is SQL; SQL as far as the eye can see. I'm sure the NSA has some novel solutions to crunching shittons of big data, but day to day, at least in my experience, it is a lot of relational CRUD and reporting queries.

For the curious, it does clearly exist:

https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-rds.html

[–] [email protected] 81 points 1 week ago (2 children)

Lmao we’re gonna get to watch eel-on-musk and all of his dipshit wünderkinds speedrun through all of the pitfalls a junior DBA / data engineer is liable to make, and they’re gonna do it on prod, and prod is the US government.

What could possibly go wrong

[–] [email protected] 13 points 1 week ago (3 children)

Either a DELETE FROM or a DROP DATABASE if I had to guess

load more comments (3 replies)
load more comments (1 replies)
[–] [email protected] 22 points 1 week ago (4 children)

Maybe it’s all just one big .xlsm file?

[–] [email protected] 4 points 1 week ago

with vlookups across multiple sheets to get around row limitations, that's just common sense in MyExcelDB

[–] [email protected] 2 points 1 week ago

I could see it all being a big vendor specific XML file with XSLT for the application layer

[–] [email protected] 6 points 1 week ago (1 children)

Holy mother of visual basic

[–] [email protected] 7 points 1 week ago (4 children)

*visual basic for applications

load more comments (4 replies)
[–] [email protected] 10 points 1 week ago (1 children)
[–] [email protected] 8 points 1 week ago (1 children)

Nah, that’s too fancy. It’s all held together by some arcane Visual Basic macro someone wrote 25 years ago right before going to retirement and no one has dared to touch it ever since.

[–] [email protected] 1 points 1 week ago (3 children)

Qbasic, if that.

Biden is a blue dog and never cared about infrastructure. Trump cant spell the word. Obama did, but for overpriced drones and oil. Bush only did for oil and deregulated to make things worse. Clinton cut thing Bush Sr cut things. Reagan fucked everything up with "trickle down"

Meaning the last president that did major infrastructure spending is at best Carter, Ford or Nixon.

load more comments (3 replies)
[–] [email protected] 1 points 1 week ago

What is that a database is not de-duplicated?

[–] [email protected] 31 points 1 week ago* (last edited 1 week ago) (1 children)

Maybe Musk needs to learn about data normalization and natural keys.

I'm curious what the actual data looks like. I've spent quite a bit of time auditing large data systems.

I would expect these databases to be largely denormalized with very wide tables, I would expect them to favour natural keys like a SSNs, and built around per department use cases.

I would not expect them to be highly normalized because then when you need something from another department you need them to ensure consistency.

These systems probably have like 50 years of legacy code or more in them too.

load more comments (1 replies)
[–] [email protected] 5 points 1 week ago (2 children)

Is retard a bait/dog whistle word?

[–] [email protected] 21 points 1 week ago (2 children)

When Elon was in his early teens, that word was a common pejorative.

If you look at Elon and interpret his behavior as if he was 13, it all makes a lot more sense.

load more comments (2 replies)
[–] [email protected] 15 points 1 week ago

Used by the guy who did two Nazi salutes at the inauguration? It absolutely is

[–] [email protected] 136 points 1 week ago (1 children)

As someone who has literally helped the government use SQL for over a decade, this is huge news.

[–] [email protected] 45 points 1 week ago (3 children)

Elon and DOGE should really look into all of those Oracle contracts the Fed pays for. Must be all inefficiency and fraud.

[–] [email protected] 25 points 1 week ago (6 children)

Please do. Most of my sales these days are people dropping Oracle due to cost.

[–] [email protected] 10 points 1 week ago

It would be one of the areas that would save the government a bunch of money. But, Ellison is in the Trump camp so it’s not going to happen.

load more comments (5 replies)
load more comments (2 replies)
[–] [email protected] 36 points 1 week ago (2 children)

That's what he does. Not understand things.

[–] [email protected] 5 points 1 week ago

Now now, he also has LeAdErShIp skills like taking his incorrect understandings and making the ToUgH dEcIsIoNs and being DeCiSiVe and taking RiSkS that will in no way impact his lifestyle but could destroy the careers and lives of thousands to millions of other people.

load more comments (1 replies)
[–] [email protected] 308 points 1 week ago (2 children)

Elon’s shock and fury about the database key sounds like he got a report from an out-of-breath 20 year old DOGE kid who thinks they’re hot shit and discovered some massive flaw.

Elon also seems like the kind of person that believes a database schema is all that’s needed to govern a population.

[–] [email protected] 112 points 1 week ago (1 children)

He’s mad because it isn’t blockchain

[–] [email protected] 56 points 1 week ago (8 children)

Goddammit, now you’re giving him ideas.

load more comments (8 replies)
[–] [email protected] 40 points 1 week ago* (last edited 1 week ago) (5 children)

Database schema = "Not fraudulant", what's so hard about that? Login credentials don't even need to be encrypted if you say no fraud before you log in, and cross your fingers. It's basic programming knowledge, come on man. Also throw some salt over shoulder and slaughter a goat for good measure just in case.

[–] [email protected] 7 points 1 week ago (1 children)

You just describe half of my career. 😅

[–] [email protected] 10 points 1 week ago (1 children)

You joke, but one of the programs at my work we use legit doesn't need credentials, just a username. That one's a head scratcher to me.

load more comments (1 replies)
load more comments (4 replies)
load more comments
view more: ‹ prev next ›