Don’t use booleans | LUU.IO
www.luu.io/posts/dont-use-booleansUse enums instead.
With any blanket statements like this, there are always exceptions.
Though in general, I believe the use of enums is often a better choice compared to boolean, unless you really need to squeeze your data into one single physical bit.