In general,
Many C users prefer to place a single letter variable type identifier first rather than last. Personally, I find that irritating because, when the variables are sorted, you can't find anything unless you remember what type a specific variable is. I prefer to remember just the variable's name and let the variable tell me its type. When extended to User Interface components, the same argument applies.
The associated routines will be named similar to
UIMenu_File_Exit_Click()
Delphi
The following definitions are followed but not enforced
TName | All type definitions begin with T |
FProperty | The private class field used to store a property's value starts with F |
OnMouseClick | Most event names begin with On |
LVarName | Local variables, not usually used for single letter variable names - i, j, k, x, y, z |
PVarName | A variable passed as a parameter. The Delphi VCL uses A instead of P. The common parameters Value and Message are used without a prefix. |
PTName | Pointer to an object of type TName. |
Most property methods start with either Set or Get; events start with On.
C++ Builder
Windows API
winAPI_FuncName
Author: Robert Clemenzi -
clemenzi@cpcug.org
URL: http:// cpcug.org /
user /
clemenzi /
technical /
Languages /
NamingConventions.htm