2 ms·
One of the things I've found strange about UUIDs is their serialization to hex when displayed as a string, yet I've seen real life projects with little technica
by 013a 9y ago
One of the things I've found strange about UUIDs is their serialization to hex when displayed as a string, yet I've seen real life projects with little technical debt store them as a string in a database. This is obviously the fault of the programmer, but you have to look at that and think if you're serializing to a string (whether that be in a database or over the network), there are so many better options.
- Ciantic 9y agoThere will be a lot of these. Microsoft's ASP.NET Core Identity by default stores user id as a GUID string to the database: https://github.com/aspnet/Identity/blob/dev/src/Microsoft.Extensions.Identity.Stores/IdentityUser.cs#L12 https://github.com/aspnet/Identity/blob/dev/src/Microsoft.Ex...