Saturday, September 1, 2012

Three name notations in computer coding



There are three name notations in computer coding: Pascal, Camel and Hungarian. It is better to use the same notation in all your codes.

Pascal notation:
first character of all words  is uppercase.
Example:  HelloWorld

Camel notation:
the first character of all words, except the first word,  is uppercase
Example: helloWorld

Hungarian notation:
the prefix encodes the  data type
Example:
bHelloWorld  is   Boolean data  type.

No comments:

Post a Comment