99
you are viewing a single comment's thread
view the rest of the comments
[-] state_electrician@discuss.tchncs.de -5 points 4 months ago

I don't think that holds true in all scenarios. You need to use a key that has some guarantees. In many systems you will use data you don't control, like email addresses, IBANs, ISBNs, passport IDs and many more. You have zero control over those keys, but because each comes with certain guarantees, they might be suitable as a foreign key in your context.

[-] Kissaki@programming.dev 10 points 4 months ago

People regularly change email addresses. Listing that as an example is a particularly bad example in my opinion.

[-] jum@chaos.social 1 points 4 months ago

@Kissaki @state_electrician Well, I use the same self hosted Email address since the late 80‘s. I do not consider that changing it regularly.

[-] smaximov@lemmy.world 6 points 4 months ago

Well, I use the same self hosted Email address since the late 80‘s

Personal anecdotes are rarely pose a valid argument (unless you are designing a database specifically for users who use the same email address since the late 80's).

load more comments (1 replies)
load more comments (1 replies)
load more comments (3 replies)
this post was submitted on 20 Jun 2024
99 points (94.6% liked)

Programming

17351 readers
298 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS