Programming 101
by Volker Weber
I just went through some preferences files and stumbled upon this gem. Can you spot what's wrong? I mean unless there is a "maybe".
Comments
Yeah, SetupMusic should clearly be a DATE, not a STRING. Sheesh, what is wrong with these mindless hacks? *snicker*
Without seeing the app, how would I know that the valid choices aren't "Yes", "No", and "Never". And if that (or something similar) is even a possibility that the developer has in mind for a future version that may never be release, I have no problem at all with the choice of using a String property.
Maybe someone tried to save one bit using the actual pref value in UI? :-)
Why wouldn't Yes/No also be a Boolean?
I don't get it, the obvious problem is the String and Yes/No but more importantly is this an actual file or a preference screen? If its a preference screen who puts "boolean" or "String" in a preference UI?
@Bob, type about:config in FireFox address bar.
What Is Truth?
Microsoft has the tri-state boolean since ages. Nowadays its documented like this.