4 ms·
Then it should be on/off, not yes/no.
by jeltz 2y ago
Then it should be on/off, not yes/no.
- xigoi 2y agoon/off also doesn’t make sense in many contexts, for example `isRegistered: on`.
- qw 2y agoI often prefer enums over booleans for this. It seems more readable for most cases, and can be extended with new values. This: isRegistered: true could be replaced with accountStatus: "UNREGISTRED"
- deleted 2y ago[deleted]