2 ms·
Folks, the headline is real bad and clickbaity, but I think the blog post is actually very, very correct in its basic premise.
by pavel_lishin 2y ago
Folks, the headline is real bad and clickbaity, but I think the blog post is actually very, very correct in its basic premise.
- kromenak 2y agoTotally agree - I appreciate and understand (and agree with) the enum idea. But stating “don’t use booleans” is a terrible absolutist ideas that will lead to terrible code. Imagine a student reads it, takes it to heart, and starts creating dedicated enums for every logic branch in their code.