this post was submitted on 11 Feb 2025
1005 points (98.8% liked)

Programmer Humor

20039 readers
3016 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.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 1 hour ago (1 children)
[–] umbraroze 1 points 5 minutes ago

When Elon bought Twitter, I realised right away I'd need to close my account.

What made me hurry up exporting my data and closing the account were the reports of Elon Musk personally fucking with the systems, and the subsequent glitches and outages. Had to get it done while the site was still moderately functional.

And they just let this guy get his hands on actually important national computer infrastructure? Fucking hell.

[–] [email protected] 15 points 1 hour ago* (last edited 1 hour ago)

Sounds like he got confused looking at a view of a join.

[–] ansiz 27 points 3 hours ago (1 children)

If SSN based fraud is the program then let's establish an actual federal identification number. Even the Social Services bureau tried to get everyone to not use it as the end all source of truth. They only created it for social security benefits, literally only that purpose.

[–] [email protected] 5 points 2 hours ago (2 children)

They should just publish every SSN at once with names. That'll make them useless as "secret" numbers and useful as identifiers.

[–] [email protected] 2 points 26 minutes ago

In college, early 90s, our student IDs had our photo and SSN on it

I've operated ever since under rhe assumption anyone and everyone has access to it.

Then with all the data breaches over the last 10/15 years? Freeze credit reports with the 3 reporting agencies for free. Check for extra accounts with the free annual credit report pulls.

For all practical purposes, our SSNs are easily obtained by someone who wants it.

I'm not sure what the solution is, but a unique identifier has to be housed somewhere where in can be accessed in a format humans can read, which means it can be accessed and dumped so it's no longer private or secret.

I'm not a fan of biometrics, and I tolerate 2FA. I really think it's more important we change how we think about and use personal, unique, identifiers (like SSNs)

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

hasnt that already happened with a data breach? i remember reading something about it

[–] [email protected] 56 points 4 hours ago (1 children)

He got community-noted for being wrong. Per usual, it's only a matter of time before he deletes his post.

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

More likely, he'll delete the community note

[–] AstridWipenaugh 10 points 1 hour ago (1 children)

More likely, he'll delete the database.

[–] [email protected] 6 points 1 hour ago

Shit, I'd love for him to delete the twitter databases

[–] [email protected] 32 points 3 hours ago (3 children)

It's hard to figure out what he's talking about , when he says the "whole social security database". Like in which tables are they duplicated? Does it mean the entire row is duplicated or just the SSN, it might make sense to be duplicated depending on the schema. Is it an append only db, so there might be updated columns on the same ssn and you need to filter by the latest update timestamp? Who knows.

But also, saying that there's a "social security database" and then following that up by the govt "doesn't use SQL" so.. the db is actually just a spreadsheet? A .txt file? The SSNs are just written down in someone's notebook? Lol

[–] [email protected] 14 points 2 hours ago (1 children)

SSNs are reused. Someone dies and their number gets reassigned. The database could easily be keeping track of all previous assignments for any given SSN.

Remember, SSNs are designed for social security and nothing else. They got picked up as a unique ID by private interests as a hack. They were never supposed to be as widespread in use as they are. The federal government using it this way is the specific, designed use case.

[–] captainlezbian 3 points 1 hour ago

Yep, and any attempt to replace them with a purpose designed government ID has gotten conspiracy nuts to shut it down

[–] some_designer_dude 6 points 2 hours ago

It’s LotusNotes all the way down

[–] [email protected] 7 points 3 hours ago

Or mongoDB 🙄

Probably something bespoke/legacy.

[–] [email protected] 4 points 2 hours ago

https://xcancel.com/elonmusk/status/1889062581848944961

thought the replies would be better. Some people deducted that it uses plain text.

[–] Randelung 15 points 3 hours ago

Of course. Everyone who's ever used a DB knows it's BS. As long as the data is structured - which it a) is because he was able to make assertions about it and b) fucking Excel files are enough - it CAN be imported and SQL'd on. Even Excel has built in support for fuck's sake, not to mention Python and PowerQuery.

The dude is a self-certified moron - he probably struggles with the concept of PKI, too.

[–] [email protected] 8 points 3 hours ago (7 children)

Ok genuine question, what is the difference between a SQL database and a simple Excel spreadsheet?

[–] lefixxx 3 points 41 minutes ago

The excel file contains the data. It's equivalent to the database.

The excel program is how you interact with the data. SQL is how you interact with databases.

Doesn't matter how the data is structured inside the database. You can ask in the SQL language and you will receive an SQL answer.

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

People yell at you if you use an excel spreadsheet as a database

[–] moseschrute 4 points 2 hours ago (2 children)

Does anyone yell if I use SQL?

[–] [email protected] 5 points 2 hours ago

Only the programmers that have to run queries in it because that's their job. 😭

[–] [email protected] 4 points 2 hours ago

only is its sqlite.

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

A whole lot. Too much to cover in one post in any kind of detail.

A modern relational database management system (RDBMS) is a highly optimized beast. How it accesses storage is very carefully considered. It has a whole mini language for defining relations between data. There are tools for debugging specific queries to make them faster. They index data with tradeoffs between read and write speeds. There are sophisticated locking mechanisms so multiple users can read and write at the same time. They have transactions where many alterations can be packed up together and written efficiently at once. Those transactional alterations are atomic, meaning there are guarantees that all of them happen or none of them happen. The entire thing is based on set theory, and it has survived attacks by many other pretenders to the throne for decades.

And if you're using Oracle, you can get all that while paying a highly optimized pricing model set up by the best financial advisors Larry Ellison can find to maximize value extraction from your company.

[–] captainlezbian 1 points 31 minutes ago

And alternatively, for excel once you leave the realm of a single person entering data for a single project over time sizes you start entering the "why does this take 10 minutes to open" territory

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

Storage data structures. Database tables are designed for fast read/write. Excel is designed for fast simultaneous parallel computation.

To get a sense of what this looks like, you can read more about their data structures; Databases typically store data in what's called a "B Tree" and spreadsheets typically store as a format that can be easily converted into a "Directed Acyclic Graph" (although Excel lets you turn off the "acyclic" part if you allow circular references).

Although, with Excel specifically, there's probably not much difference since it has some database functionality now.

[–] [email protected] 11 points 3 hours ago* (last edited 2 hours ago) (2 children)

In the context of this tweet most important differences are:

SQL is a language for querying databases.

Most common used databases are relational databases. With relational databases you can setup, well, relations and constraints.

Imagine you have 2 tables (2 excel sheets) one with people, and one with home ownership. You can set the following constraint: (1) each person shows up only once in the people table. And the following relation: (2) every home owner must refer to an existing person in people table.

When modifying the table contents, the system checks if no constraints or relations are violated.

Excel, just like a badly designed relational databse, would, for example, have no problem with duplicate people, or home ownership referring to non-existant people.

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

I spent more than I'd like to admit wondering "what the fuck is a wel relation?!"

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

The amount of data, sql is designed to manage large datasets, millions of rows. Excel has its limits.

[–] mossberg590 6 points 3 hours ago

SQL is a language used to manage and interact with most relational databases so it is used often to describe relational databases. There are many tables in a relational database, each is very much like an excel tab. The excel spreadsheet can have many tabs relating to each other. So kinda similar. However a relational database is better defined, more functions and forced relationships, and most important space efficenct. Excel takes probably 100-1000 times more space, and that is best case.

[–] [email protected] 37 points 5 hours ago (3 children)

He used to be regarded as tony stark. Nah he is Justin Hammer. Steals ideas implements them shit and has no idea about anything

[–] TBi 10 points 3 hours ago (1 children)

I get your point but I disagree. I think both Tony Stark and Justin Hammer are more competent than Elon.

Hammer was no where near as good as Tony but he did make some good stuff.

I would say he’s more like Obadiah Stane, an opportunist taking credit for others work.

[–] [email protected] 5 points 2 hours ago

True. Atleast Hammer knew his weapons and could sell them alone

load more comments (2 replies)
load more comments
view more: next ›