3 ms·
I concur. Same thing in many UI frameworks where you’ll have a Boolean “isHidden” to control visibility. Makes it so hard to reason about.
by wanderingstan 1y ago
I concur. Same thing in many UI frameworks where you’ll have a Boolean “isHidden” to control visibility. Makes it so hard to reason about.
- Rexxar 1y agoIMHO, in this case it should not even be a boolean but an enum {Visible, Hidden}.
- roguecoder 1y agoEven with working with an existing framework, we can define a constant `HIDDEN=true`