This question already has an answer here:
This is a naming convention question.
In C#, someone suggested that variables of type
List<T> should be named as
listBlah instead of just
blah. Similarly for variables of type
I think the reason is because we can guess the type of a variable by just looking at its name, without having to find where it is declared.
But when you create an object of a class with name "MyClass", what is some good practice to name the object (after the class' name)?
When you create a variable of primitive types such as
double, what is some good practice to name it?
I guess this question is not just for C#, but also for other programming languages.