The Book of Gehn

Sidenote: Identifiers

April 19, 2020

What would be a nice identifier for the people in, let’s say, a database?

We need identifiers to operate the tables, make joins, and all kind of crazy data processing.

What would be a good one?

Their names and addresses? Quite old fashion. Collisions are possible and can be very frequent.
Building an id based on the attributes of the person is not good in any case: it is a matter of time that the person change in some way (like change her address) to make the id schema inconsistent.

Their government-level id, like the Social Security Number? Better but no, different countries have different identifier systems like INSEE in France. If you plan to use the software world-wide this will not work.
And you are still depending on humans to ensure uniqueness.

Their email? Everyone has an email, right? Yea… well. It is more nation agnostic but still…

Their DNA? That’s unique right?

Keep it simple. Use a plain number.

Just:

Sidenote: Identifiers - April 19, 2020 - Martin Di Paola