TLDR Web Dev · OPINIONS & ADVICE
DON'T USE BOOLEANS
Summary from the TLDR Web Dev newsletter
Enums offer several advantages over booleans, such as improved readability, explicit typing for better error handling, and easier behavior-driven development with extendability for future features. The overhead of enums is minor compared to the benefits.