Knowing somebody's UserId can tell you things like their email address, or how to find them on social media. They probably don't want that. But then, when how do we display users? E.g. when somebody hits GetPrediction, how do we tell them who the creator is?
oneof actually means "zero-or-one-of", so there need to be conditional checks in lots of places.
So, instead, let's say that every user has a unique username.
Currently, users are uniquely identified by
UserId
s:This produces a couple of complications:
UserId
can tell you things like their email address, or how to find them on social media. They probably don't want that. But then, when how do we display users? E.g. when somebody hitsGetPrediction
, how do we tell them who the creator is?oneof
actually means "zero-or-one-of", so there need to be conditional checks in lots of places.So, instead, let's say that every user has a unique username.