24.10.2015, 08:45
"Pro-style" is only how you want to do it. I prefer the standards, basically what Vince said.
Quote:
There is a difference between Systems Hungarian and Apps Hungarian. Systems Hungarian encodes the variable's type in its name (i.e. i for integer, f for float, the ever notorious sz for string, etc). Frankly this is utterly stupid, since a variable's type can and should be deducted from its name. I don't need "sz" to tell me that "name" is a string. Apps Hungarian on the other hand encodes the purpose of the variable, like g for global, and that is of course a lot more useful.
There are a few more conventions I tend to stick to:
|