Yes! The concepts are intertwined.
I think the key take away, for me, is to lean heavily into your type system and allow that to do some of the heavy lifting. Accept that something like a username is not a string, but a subtype of a string (this has to be true if any validation is required, otherwise you’d just accept any valid string).
Yes! The concepts are intertwined. I think the key take away, for me, is to lean heavily into your type system and allow that to do some of the heavy lifting. Accept that something like a
username
is not a string, but a subtype of a string (this has to be true if any validation is required, otherwise you’d just accept any valid string).