![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Why are tristate booleans a Calibre-wide setting?
I find it a bit strange that Calibre has a lot of options for custom columns, except for whether a column is bistate or tristate. You can't have both of them in different columns in the same library.
![]() |
![]() |
![]() |
![]() |
#2 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
I'm not sure what you mean by bistate or tristate. I'm only using the Yes/No type which are all tristate and I have 3 columns using them.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
My thought was either your mental model a) is that yes/no is exactly that (bistate), or b) that "I don't know" is an acceptable answer (tristate). Under this point of view it makes no sense to offer both at the same time. It was not intended as a shortcut for avoiding thinking about the problem.
If I had it to do again I would not offer bistate, instead using default values to map "I don't know" to "No". |
![]() |
![]() |
![]() |
#4 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
I just found it interesting that this isn't a column-specific setting. |
|
![]() |
![]() |
![]() |
#5 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I think the reason I switched to bistate is because I ran into an issue with a plugin (Reading List, I think?) where it attempting to set #bool:false or #bool:no instead cleared the value.
Last edited by ownedbycats; 11-03-2020 at 06:34 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
I never noticed that setting. I'm guessing it's app-wide simplifies things otherwise making it per column would mean having two different types of yes/no choices in the column builder.
My memory from my programming days is that in databases the empty or Null choice was considered a design misfeature because it tended to introduce hard to find programming errors, or maybe it was that queries were more difficult to get right. Although in databases the null value could be used in any type, not just true/false yes/no, but regardless was a bad "code smell". |
![]() |
![]() |
![]() |
#7 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I know an earlier version of Calibre had a glitch with column icons/emblems showing up improperly with bistate bools because it was still flagged as 'undefined' in the database.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Other Fiction Warner, Susan: The Wide, Wide World. v1. 21 Jun 2014 | crutledge | Kindle Books | 0 | 06-21-2014 09:31 AM |
Other Fiction Warner, Susan: The Wide, Wide World. v1. 21 Jun 2014 | crutledge | ePub Books | 0 | 06-21-2014 09:29 AM |
Other Fiction Warner, Susan: The Wide, Wide World. v1. 21 Jun 2014 | crutledge | BBeB/LRF Books | 0 | 06-21-2014 09:27 AM |
Memento users? question about booleans | khrome | Android Devices | 2 | 07-22-2012 06:50 PM |
Setting Calibre on my PC | mmread | Ectaco jetBook | 1 | 12-01-2010 11:29 AM |