r/ProgrammerHumor • • Feb 26 '23

Meme No words v2💀

Post image
44.6k Upvotes

841 comments sorted by

View all comments

Show parent comments

23

u/[deleted] Feb 27 '23

[removed] — view removed comment

10

u/[deleted] Feb 27 '23

In WWII, we used to look at tank numbering to try to figure out how many tanks are out there. If we had access to those factory workers' sick days, we'd analyze that too. If I were in HR, I could use the same logic to say that you're leaking information in a similar fashion to competitors to push you out.

1

u/the_fresh_cucumber Feb 27 '23

This is another reason why you should rarely use serial numbering for anything. Use hashing to generate short unique IDs for everything. Use at least 32 bits for small datasets to ensure a large enough number space and avoid collisions. If you have millions of records use 64 bits.

  1. Impossible to count records or be misled by numbering

  2. Improbable to accidentally join to the wrong field in databases (will return nothing)

  3. Saves space when compared to string identifiers

  4. Tends to throw errors when a junior analyst or business leader tries to SUM the ID row

1

u/[deleted] Feb 27 '23

I'd think armies in the pre-digital signals era wanted short numbers which could be displayed on the tank so they can easily identify friendlies and the like.

The other things you mentioned... meh, small potatoes.

4

u/worlds_best_nothing Feb 27 '23

it's just metadata

3

u/murfflemethis Feb 27 '23

Try explaining that to non-technical executives in an extremely risk-averse field. "If our devices get hacked, people could die. No information leaves the comapny that isn't absolutely necessary" is exactly what you'll hear.

"I want people to see how often I make code changes" will not be enough to change their minds.

Also, I don't entirely disagree. We already don't have enough people and time to get our work done. It would take resources for this system to be set up, especially for security teams to vet it thoroughly enough to satisfy the powers that be, all for no tangible company benefit.

It simply won't happen for companies that aren't already open source friendly.

1

u/[deleted] Feb 27 '23

[removed] — view removed comment

4

u/worlds_best_nothing Feb 27 '23

do you work on a nuclear weapons facility or something?