Random naming help. I have an android app. I need ...
# random
c
Random naming help. I have an android app. I need something that holds the overall app state. (i.e. Am I logged in, among other state) I'm torn between AppState and AppStateHolder. My coworker is vouching for AppManagerService. Thoughts?
p
How about
AppManagerServiceRepository
? 🧌
So if you have an
AppState
being a data class with properties like
loggedIn : Boolean
an
AppStarteHolder
makes sense. ManagerService imo is just bloated and doesn’t say anything about what it does
c
AppManagerServiceRepository 😂
a
A state holder is usually called Store in redux. I would name it MainStore, or RootStore.
👍 1