3 ms·
A docstring can be used instead of making a many-words sentence-long name. IDE can show it automatically when you focus on the name in the source code.
by d0mine 5y ago
A docstring can be used instead of making a many-words sentence-long name.
IDE can show it automatically when you focus on the name in the source code.
- afiori 5y agoSometimes a variable is for checking whether a value is kerfuffled by jingleberry so isKerfuffledByJingleberry can be a good name
- worik 5y agoThat is, roughly, verb/noun It also depends on how wide the scope is. "i" for an index variable is often a good choice. For the global count of eyes, "i" is a terrible choice. So in a limited scope I would tend to: kerfuffled:bool