Nov 9, 2016 at 1:08pm UTC
Some people prefix their vars or constants with a letter. So g could mean global, k could mean constant, f is sometimes used for flags i.e. bool.
Nov 9, 2016 at 1:13pm UTC
It looks like a version of Hungarian Notation:
https://en.wikipedia.org/wiki/Hungarian_notation
Nov 9, 2016 at 1:13pm UTC
Also some people put "no" in front of variable names to indicate it is a running count of something.
Like noDogs means "number of dogs".
But people who don't know this will get confused thinking "no dogs" and just be like "what?! is it a boolean?!?!".
Nov 9, 2016 at 2:39pm UTC
If I were to use a prefix to indicate a running count of dogs it would be something like numDogs, to make it self-documenting. I agree noDogs would be confusing.
Nov 9, 2016 at 4:42pm UTC
Plus, although I'm a cat guy, noDogs would be sad :( ...