Main Page
(x, why?)
by Christopher J. Burke
Mr. Burke's Math logo

1026: (x, why?) Mini: Boolean
Comic
Click Me
for a random comic
Mr. Michael Keegan, Math Teacher

If (isfunny) then leave-praise-share else nevermind

Boolean is a logical value equal to True or False and is used in logic (such as in computer programming).

The interesting thing about them was when I found out that False has a zero value, but True isn't equal to 1. In fact, True is simply "not zero", literally any value other than zero (or possibly "null", which is something else and I'm not going there right now).

That means that in situations where you might write "If x != 0 then" (Note: != mean "not equal to" in many computer languages"), you could just write "If x then" because any value other than 0 (which we didn't want) would evaluate as True! This was great! ... except that my professors condemned this as "clever coding" which was harder to read, decipher and maintain, so Don't Do It.

I'm not a programmer by trade any more, but from what I read, clever coding could be the standard, for all I know, because it executes faster, and it's more of a feature of languages like C than it was of PL/I or Pascal.

Final note: "Boolean" is named after George Boole, so it gets a capital "B", like "Venn diagram".

Oh, and this is a bullion cube joke, if you didn't get that. You don't use "Boolean cubes", except maybe in roleplaying games.


Please visit my blog: http://mrburkemath.blogspot.com.
(You can also go there to leave comments!)
First comic Previous comic Next comic Latest comic
Click Me
for a random comic
Kitt Ten. A walking, talking numeral
The Webcomic List

JUN Jul 2015 AUG
28 29 30 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 1
2 3 4 5 6 7 8





(x, why?) is hosted on ComicGenesis, a free webhosting and site automation service for webcomics.
(x, why?)