Difference between revisions of "Avoid encodings: Hungarian Notation"

From Basef
Jump to: navigation, search
(Criou página com 'Examples of Hungarian Notation: * lAccountNum : variable is a long integer ("l"); * arru8NumberList : variable is an array of unsigned 8-bit integers ("arru8"); * bReadLine(b...')
 
Line 1: Line 1:
 
Examples of Hungarian Notation:
 
Examples of Hungarian Notation:
  
* lAccountNum : variable is a long integer ("l");
+
* '''lAccountNum''' : variable is a long integer ("l");
* arru8NumberList : variable is an array of unsigned 8-bit integers ("arru8");
+
* '''arru8NumberList''' : variable is an array of unsigned 8-bit integers ("arru8");
* bReadLine(bPort,&arru8NumberList) : function with a byte-value return code.
+
* '''bReadLine(bPort,&arru8NumberList)''' : function with a byte-value return code.
* strName : Variable represents a string ("str") containing the name, but does not specify how that string is implemented.
+
* '''strName''' : Variable represents a string ("str") containing the name, but does not specify how that string is implemented.
  
  
 
[[Category: Clean Code]]
 
[[Category: Clean Code]]

Revision as of 12:10, 27 January 2020

Examples of Hungarian Notation:

  • lAccountNum : variable is a long integer ("l");
  • arru8NumberList : variable is an array of unsigned 8-bit integers ("arru8");
  • bReadLine(bPort,&arru8NumberList) : function with a byte-value return code.
  • strName : Variable represents a string ("str") containing the name, but does not specify how that string is implemented.