Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
qw
10 months ago
|
parent
|
context
|
favorite
| on:
YAML: The Norway Problem (2022)
I 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"
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This:
could be replaced with