The Daily WTF
A large part of programming is about communicating intent. The code you write needs to communicate your intent for what the code is supposed to do, both to the computer itself but also to all of the humans which come after you. So much of what we mean when we talk about code style and “clear names” is really about making your intent comprehensible to anyone else who looks at the code.
When the intent of the code isn’t clear, we often rely on comments to describe that intent.
Which brings us to this comment that Noreen found.
// IsEnabled and IsDisabled are two different concepts. // IsEnabled affects whether the element can be focused. // IsDisabled affects the visual look of the element, // while allowing it to still be focusable for accessibility purposes.
In most places you encounter “enabled” and “disabled” states, they’re usually- but not always-
To read the full article click on the 'post' link at the top.