Not really Hungarian. This is how I prefix variables, Database Table columns and how I abbreviate common words in my apps (this is an Abr).
prefixes are application oriented. No language specific datatypes (int32, word
etc)
prefixes are the same cross language. Each programming language used in a
project should have the same name for the same variable (eg SQL, C#, Javascript)
Prefixes for variables (& Table Columns)
prefix
Data Type
Example
Usage
Comments
n
numeric
nPerAge
Person's age
Integer values. Can be negative.
s
string
sPerLNm
Person's Last Name
c
currency
cPerSalary
Person's Salary
r
real number
rPerWeight
Person's Weight
used to be “f” but I needed f for functions.
d
date
dPerDob
Person's DateOfBirth
t
time
tMetStart
Meeting's Start Time
o
object
oPerson
Person oPerson=new Person(); (C#)
var oPerson=new Person(); (C#)
f
function
fCallBack
var fCallback=function(){};
e
enumeration (string)
ePerMaritalStatus
Person's Marital
Status
can have one of prespecified values: see en
en
enumeration list
enMaritalStatus
The structure
containing the enumeration values
var
enMaritalStatus=[SINGLE,MARRIED,SEPARATED,DIVORCED]
p
Percentage
pVat
Value added Tax (percentage)
pVat = 0.21; (=21%). Some people think p should be
reserved for pointers.
I think it is reasonable if there is a possibility to use pointers.