2 ms·
adjustFooSOItFitsIntoTheSpaceAvailableIfNeeded What gets me is long verbose names. noun-verb. Short names. They are mnemonic not descriptive
by worik 5y ago
adjustFooSOItFitsIntoTheSpaceAvailableIfNeeded
What gets me is long verbose names.
noun-verb. Short names. They are mnemonic not descriptive
- d0mine 5y agoA 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
- GoblinSlayer 5y ago>noun-verb fcntl
- worik 5y agoActually I prefer verb noun. I misstyped. goDisplay() rather than initialiseDisplaAndEnterDisplayModeIfEverythingIsOk