C
cmay
I am getting a messages that I am getting. Maybe someone can help
explain some of these.
Parameter names should use complete words
Type: ParameterNamesShouldHaveCompleteWords
Cause: A parameter in a public or protected method has a parameter that
meets one of the following criteria:
Rule Description
By convention, parameter names do not use abbreviations or Hungarian
notation. Naming conventions reduce the learning curve required for new
software libraries because, for very specialized types, the intended
usage is apparent from the type name. Also, naming conventions provide
a common look and feel for libraries that target the common language
runtime.
My question about this code is:
1) If I remember correct there are lots of APIs (Win32, VB etc) that
have Hungarian notation right?
2) When writing code, Hungarian notation is used to help the person
writing/reading the code to understand the type of the variable. If
you have a function that takes parameters of (Name, Value, File) then
for the entire procedure, you will be using a variable named "Value",
unless you were to first create another variable "iValue" and assign
the parameters to the new variables.
Does this make sense?
explain some of these.
Parameter names should use complete words
Type: ParameterNamesShouldHaveCompleteWords
Cause: A parameter in a public or protected method has a parameter that
meets one of the following criteria:
Rule Description
By convention, parameter names do not use abbreviations or Hungarian
notation. Naming conventions reduce the learning curve required for new
software libraries because, for very specialized types, the intended
usage is apparent from the type name. Also, naming conventions provide
a common look and feel for libraries that target the common language
runtime.
My question about this code is:
1) If I remember correct there are lots of APIs (Win32, VB etc) that
have Hungarian notation right?
2) When writing code, Hungarian notation is used to help the person
writing/reading the code to understand the type of the variable. If
you have a function that takes parameters of (Name, Value, File) then
for the entire procedure, you will be using a variable named "Value",
unless you were to first create another variable "iValue" and assign
the parameters to the new variables.
Does this make sense?