Programmers are master logicians – well they sometimes are. Most of the time they are as useless at it as the average joe. The difference is that the average joe can avoid logic and hence the mistakes. How good are you at logical expressions and why exactly is Augustus De Morgan your best friend, logically speaking?
It is commonly held that programming is a logical subject.
Programmers are great at working out the logic of it all and expressing it clearly and succinctly, but logic is tough to get right.
IFs and Intervals
A logical expression is just something that works out to be true or false.
Generally you first meet logical expressions as part of learning about if statements. Most languages have a construct something like…
Read more at I Programmer