Stylebook: Single letter variables - crccheck/crccheck.github.io GitHub Wiki
Avoid using single letter variables.
The rare times it's ok to use single letter variables:
- Math because there's historical context for what each letter means (e.g.:
x/y/zcoordinates,i/jmatrix indices) i(and sometimesj) for iterators, butidxif it spans more than one line. I can't remember the last time I had to usejnow that the functional style of coding is more popularxfor instance of an iterable (each)aandbfor when things come in pairs (sort, reduce)nis likeibut when something is a total/count (not used often these days)
Even when I follow these guidelines, I typically go back and change variables to more detailed anyways.