Tuesday, 27 May 2008

Illogical Operators

Logical operators are everywhere.

Even if you aren't "a techy", you use them all of the time without even knowing.

They are the "glue" that binds decisions, from those made by computer programs to those made in every-day life.  They are the "ANDs", the "ORs", and the "NOTs" that allow decisions to be made.

"If it is raining and I do not need to go outside, then stay inside."

If these two things are true, then we've got something to do.  These are "conditions" that evaluate to TRUE or FALSE.

Let's take an every day computer example - getting a tenner from a bank machine, hole-in-the-wall, ATM, or whatever you prefer to call it.

There will be some of that computer programming gubbins that says "If account balance is greater than ten pounds and PIN is valid, spit out ten pounds."

In code, this could look like this:

If AccountBalance > 10 And PINIsValid Then SpitOutTenPounds

Seriously, it really is that simple.

Little things like this make sense.  They are all around us, we use them all the time, we take them for granted.

Sadly, the job of a "techy" seems to deal more in the realm of "illogical operators".  Logically, I guess that this must be the reverse of a "logical operator".  Whilst the term popped into my head all of its own accord, as I write this entry, there is barely a page of hits on Google.  Hey, that's pretty good though ;)

Illogical operators.   The things that do not make sense.  When you add 1+1 and arrive at 3.  It does not make sense.  It cannot be true.  But all too often, the available information points to the fact that it is.

This is just one of the many types of nonsense that this blog aims to share with the world...

No comments:

Post a comment