News for hackers. Stuff that matters.
Re:KSP2 is spamming the Windows Registry until the game stop... by Waterluvian on Monday September 25, 2023 @12:48PM (#37646831)
“create_or_update pattern considered harmful,” so they say.

Actually I kind of do believe this, but separating the two doesn’t always solve the whole problem if you’re creating on every startup rather than only once on, say, profile creation or new game or something.

Re:KSP2 is spamming the Windows Registry until the game stop... by maxbond on Monday September 25, 2023 @02:54PM (#37648764)
I would say, using something that doesn't belong to you as a primary key considered harmful. Create or update is a good pattern for robustness (eg so a troubleshooting user won't brick the app by deleting it renaming the key), if you can guarantee uniqueness of the primary key. You can't constrain some identifier from a different system.