3 ms·
> Is it just user-ids we should discuss or is it all kind of ids represented as an int? Strongly typed ID’s are a thing advocated for in general [0], yes. And
by Semaphor 4y ago
> Is it just user-ids we should discuss or is it all kind of ids represented as an int?
Strongly typed ID’s are a thing advocated for in general [0], yes.
And they aren’t even inconvenient in some languages. Modern C# for example makes it very easy to use them [1].
[0]: https://andrewlock.net/using-strongly-typed-entity-ids-to-avoid-primitive-obsession-part-1/ https://andrewlock.net/using-strongly-typed-entity-ids-to-av...
[1]: https://github.com/andrewlock/StronglyTypedId https://github.com/andrewlock/StronglyTypedId