I was trained in Melbourne last year never use Hungarian notation in code so i have this practice follow with me in the Silverlight project.

Last week, I had painful time for a project code review. In all the old projects we are using Hungarian notation but now the rules have changed. Coding standard changed can make a developer life tougher 😉

Just want to share the differences between these three notations:

Pascal Notation- In this naming convention all starting letter of the words are in Upper Case and other characters are lower case.
Example: SupplierCode

Camel Notation- In this naming convention first character of all words, except the first word are Upper Case and other characters are lower case.
Example: supplierCode

Hungarian notation – In this naming convention the variable name starts with group of small letter which indicate data type.
Example: txtName ( txt indicates its a textbox control), iCounter ( i indicated its a integer data type).

220px-CamelCase.svg

Advertisements