Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
qw
· 1y ago · 0 comments
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"
Comments
No comments yet.
Better HN