You can handle the Truth, in Tables!

December 10, 2015
 A | B | Output 
   |   |  A&B
---|---|-------
 0 | 0 |   0
 1 | 0 |   0
 0 | 1 |   0
 1 | 1 |   1

Nice, just a couple of years down the road and bang! My old colleague picks up a lesson and posts the write up I never did.

Find the “arcane low level hack solution of an experienced old school hacker” to the messy world of complex nested conditions handling. Guess that’s me he’s talking about there.

Read john’s article to find out how to factor out the if / then / else mess in your code and make it clean and testable.

share this: