Show HN: List of helpful words for naming variables
github.com
github.com
Additionally, another good way to name variables is to compose them from understandable sub-name parts. For instance, I personally prefer boolean variables to have "is" or "has" prefixed.
isAdmin = true;
hasDiscount = false;
To me it's easier to understand, than the simplified: admin = true;
discount = false;
Code is interpreted by computers, but understood by humans...