First, it’s good to be back and getting into the groove of writing and practicing again. Since I left for the Thanksgiving Holiday weekend, I decided it would be easier to jut call it a break until Monday morning so that I could focus on travel, spending time with my family and enjoying Southern California with my wife, kids, siblings and parents. I’m back home now and it’s time to get back into the swing of things again.
So at this stage of the game we’re going to do some practice and focus on “boolean logic” (which is where we say a statement is true or false based on the criteria, and we nly really care about the truth or falseness of the statement.
In this exercise we focus on trying to figure out whether or not the statements we enter are true or false. IRB will be our truth telling oracle for this experiment, and we shall see if our instincts are correct to tell if an expresion is true or false.
- Find equality test (== or !=) and replace it with its truth.
- Find each and/or inside a parenthesis and solve those first.
- Find each not and invert it.
- Find any remaining and/or and solve it.
- When you are done you should have true or false.
d, but it makes sense, especially if you think about a search parameter or a database query, you want to return a particular value if the statement evaluates to true, and you want to return another one if a statement evaluates to false. A lot of these won’t make sense immediately, and that’s OK, just keep practicing with them and sure enough, you start to see why they evaluiate to true or false over time.