-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing "yes" and "no" enums #96
Comments
My new belief is that the words "yes" and "no" should generally be avoided, too: more definitively enumerative values, like "accept" and "reject", are better. (Similarly, In any case, yeah, the only falsy value should be the absence of a value, as that allows for cleanly testing whether something has been documented or not. |
Reviewing the current fields.md, it looks like the only fields doing this (other than Maybe those should be Or maybe the CAPTCHA could just be described better as, like "letters", "numbers", "alphanumeric", "word", "words", "wordoid" (word-like sounds that form a word not in the dictionary), "wordoids", "question" (ie. for when it's just a fixed normal question etc)? |
What about officially profiling "none"? That's a slightly different, but highly related, issue. |
There's also |
This "there's no such thing as a boolean" design pattern is one of the design patterns in this project that is most directly aped from the CSS world, where almost all values are unique to a specific property. |
|
#179 fixed all of the |
I think the only remaining bool-like value at this point is I'm kind of down for changing it to |
I originally designed the schema so the strings "yes" and "no" are used for fields where a boolean might be used, to leave the door open for non-binary values (eg. password.reset.token.login used to have the values "no", "before", and "after").
However, I'm now not certain that that's a solid strategy: pseudo-boolean values (with values neither "yes" nor "no") just seem like bad solutions.
On the other hand, explicitly checking for "no" beats explicitly checking for
false
(which can usually be confused for an undefined / nil value). So I'm not fully in one camp or another here.The text was updated successfully, but these errors were encountered: