Hacker News new | ask | show | jobs
by RyanMcGreal 4769 days ago
Transcript:

> Named after George Boole, boolean is the most primitive data type, allowing for one of two values - true or false. Boolean operators are intended to represent truth values. Many languages contain a strict boolean data type, however, several languages, such as C and Lisp represent boolean values as the integers of 0 (false) and 1 (true). In most languages 1 and 0 are interchangeable for true and false.

I suspect the average lay adult pulled off the street would have a hard time understanding this, let alone a child.

1 comments

Explained like I'm five: B is for Bit. A Bit is the smallest piece of Data a Computer can know. Arrays, and all Data, are made of Bits. Bits are either 0 or 1, nothing more, nothing less, and nothing in between.

(Booleans have no Business at B, Because Bits are Boolean)