Programming 101

by Volker Weber

ZZ3124AEE1

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*

Rob McDonagh, 2010-09-10

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.

Richard Schwartz, 2010-09-11

Maybe someone tried to save one bit using the actual pref value in UI? :-)

Martin Kautz, 2010-09-11

Why wouldn't Yes/No also be a Boolean?

Bruce Elgort, 2010-09-11

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 Balfe, 2010-09-11

@Bob, type about:config in FireFox address bar.

Yury Kats, 2010-09-11

What Is Truth?

Olav Brinkmann, 2010-09-11

Microsoft has the tri-state boolean since ages. Nowadays its documented like this.

Thomas Hans-Jürgen Vogler, 2010-09-15

Old vowe.net archive pages

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Paypal vowe