Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binary132
· 2y ago · 0 comments
I’m just saying enforce invariants at construction time / type-designing instead of with the validity checks
Comments
[–]
zimpenfish
2y ago
This wasn't that kind of validation - it was "is this token allowed to do this thing?" Like "validate your parking" kind of scenario.
(And yes, it should probably have been "CheckAuthorisation")
[–]
binary132
OP
2y ago
naming things is so hard.