[josm-dev] true/false against yes/no

Dirk Stöcker openstreetmap at dstoecker.de
Thu Jul 10 15:51:33 BST 2008


On Thu, 10 Jul 2008, Roland Ramthun wrote:

>> I would like to fix the code accordingly and switch to using yes/no.
>> Objections against this?
>
> If you use true/false, everyone who didn't sleep at school knows that it
> is a boolean value with only two possible values.

Well, but that's not true :-) E.g. oneway can also be -1.
And I do not argue what is more logical, because that would be 0,1, which 
takes less space in the database (and is used very very seldom). I want to 
make josm follow the majority and that's yes/no.

> yes/no is not that clear.

True/false and boolean logic is mainly known by programmers. Normal humans 
find yes/no more intuitive as tagwatch shows.

> I personally wouldn't change it, as it adds no value.

It helps unify the database a little bit.

Also josm does not handle that unified ATM. Combo boxes use yes/no also 
(e.g. access key).

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)




More information about the josm-dev mailing list