|
|
|
|
|
by wladimir
4939 days ago
|
|
I think it is crazy. Especially today, when IDEs can show you the declaration of a variable or method while hovering over it, there is no need to encode the type of a variable into the name. Variable names need to be sensible to humans, the compiler doesn't do checking on them anyway: it's all too common for the type prefixes to become misleading when a program has been refactored and they don't match up anymore. |
|
For the 1000th time
"there is no need to encode the type of a variable into the name"
It's not the data type (int, char, etc), it's the nature of the thing being counted!
Number of apples, height, distance, etc
But of course when saying "type" most people would think it's the data type when it's not