Open
Description
When it comes to booleans, instead of Reflect the expected result, I would suggest to use the positive result for the name.
E.g. instead of isDisabled
I would use isEnabled
.
This avoids mental overhead of having to think about:
- negating negative variables (e.g.
!isDisabled
= not not enabled = enabled) - which boolean state is expected. (For example, is a button really expected to be disabled?)
Metadata
Metadata
Assignees
Labels
No labels
Activity