What's your oppinion on variable prefixes that tells which type the variable is?
For example:
int iNumber;
double dPrice;
Does it really add useful information or just clutter to the code? I mean, usually you don't use a variable too far away from it's definition (or is it declaration? I keep mixing those two words up), most advanced editors keep track of variable type for you and in worst case the c++ compiler will throw an error at you.
And similarily, is C prefix to classes (ie "class CPrimitive {...};") needed for something? It's understandable why an interface would get a prefix, since it's technically a class anyway.
For example:
int iNumber;
double dPrice;
Does it really add useful information or just clutter to the code? I mean, usually you don't use a variable too far away from it's definition (or is it declaration? I keep mixing those two words up), most advanced editors keep track of variable type for you and in worst case the c++ compiler will throw an error at you.
And similarily, is C prefix to classes (ie "class CPrimitive {...};") needed for something? It's understandable why an interface would get a prefix, since it's technically a class anyway.