Naming Convention - Local scope variables
Coding standards for Rational Robot
(Continued from previous question...)
Naming Convention - Local scope variables
Description
Variables represent values that can be changed within a procedure or function. Local
scope variables are placeholders that reside within a function- or a script-body.
Syntax
[Prefix]+[ShortDescription]
[Prefix] is a lowercase letter (either "n", s", "str", "d" or "t" appropriate to the type it
represents)
[ShortDescription] is a corresponding name of what the variable stands for.
If [ShortDescription] consists of more then one word they are all separated using a capital
letter for each new word.
Prefix Datatype Examples
n integer, short, long, float nCountNumberOfRecords
nNumItems
nValue
s or str string sLastname
sUsername
sPassword
strObjectRecognition
d Date dToday
dTomorrow
dSomeday
t abstract datatype also tPerson
known as structs
v Variant vValueFromDB
o Object oExcel, oFile
a arrays AsPersonList
(Continued on next question...)
Other Interview Questions
|