That boolean should probably be something else
One of the first types we learn about is the boolean.
It's pretty natural to use, because boolean logic underpins much of modern computing.
And yet, it's one of the types we should probably be using a lot less of.
In almost every single instance when you use a boolean, it should be something else.
The trick is figuring out what "something else" is.
Doing this is worth the effort.
It tells you a lot about your system, and it will improve your design (even if you end up using a boolean).
There are...
Read more at ntietz.com