I'm working on a site with a lot of interaction between Users. So I've named the model class
User. When I refer to a page of a specific user, I have variables like
userUrl. When a specific user is member of a group I have a simple variable called
groupMember - so just plain, no prefix or whatever.
Of course I also need to refer to the currently logged in user. Right now I refer to that one with variables like
currentGroupMember if the user is part of a group.
It works a bit, but I'm not really that satisfied. It not always reads very well, especially stuff like
currentGroupMember is relatively confusing.
Because I work a lot with these objects, I'm looking for names that are short to keep stuff as readable as possible.
What are the most common patterns for differentiating between a user and the currently logged-in user?