Should a rule live in the app or on the server?
- In the phone screen, close to the interface
- On the server, called by every client
Choose: Put anything that decides what is allowed, valid, or true on the server. Keep only presentation in the screen.
Tradeoff: A rule in the screen is quicker to change and instantly wrong on the other surface. A rule on the server costs a request but stays correct everywhere, including in the version of the app already installed on a phone.