Way back in the early days of Querki, I was figuring out what the major Property Types were going to be. Figuring out the list was easy; figuring out what to call them was another matter, since I'm trying to avoid techie jargon in the basic parts of Querki. So instead of "Markup", it's simply "Text", and "Integer" is "Whole Number". (Yes,
(
Read more... )
Comments 19
Reply
Reply
(The comment has been removed)
Reply
(The comment has been removed)
Reply
(The comment has been removed)
Hmm. Interesting point, and in principle I suspect you're right. In practice, though, it *is* actually a single type, and kinda has to show up in the UI that way in some places. (Eg, when creating a Property of this type, what do we call it?)
And that being the case, I worry that being inconsistent in the terminology may be pointlessly confusing. Indeed, that's the *precise* cause of me asking this question: I found that I was having difficulty being consistent typing "Yes" and "No" in the documentation, and keep reflexively using "True" and "False" because they sound more correct to me. I suspect that inconsistency is Bad, so I want to make a decision I can stick to.
Some folks simply won't think to grab the "2-choice" type and slap, say, "active/inactive" into the labels.True, and I probably don't care passionately if so -- using Multiple Choice should generally work, if with a bit more effort. But this " ( ... )
Reply
Reply
Reply
I strongly suspect that "TrueOrFalse" is better than "TrueFalse", and that either is better than "YesNo".
Reply
Reply
Reply
BTW, does "choices" mean basically an enum of finitely many discrete values, or does it cover polymorphism of distinct types too? For example, could I define List as "choice between Empty and (First Object together with Rest List)"?
The Multiple Choice Type means precisely the former -- indeed, it was originally called Enumeration, until tpau suggested Multiple Choice. (The concept is really a design pattern under the hood: it's a Link that is constrained to values of a particular Model whose values represent the enumeration. It's quite powerful, roughly cognate to Java's enumerations. But I'm finally getting sufficiently exasperated with it to wrap it up in a pseudo-Type + UI that does all the work behind the scenes ( ... )
Reply
Speaking of that programming language long long ago, in a galaxy far far away, I think its word for Boolean was "flag".
Reply
Reply
Leave a comment