code library

Select a language to access the corresponding library:


For coding, I prefer the Hungarian naming notation where a variable name starts with a group of lower-case letters which denote the type or purpose of that variable, followed by a short, descriptive name in camel case. I use the following prefixes for variables:

Prefix Type Prefix Type Prefix Type
bool Boolean byte Byte cur Currency
date Date dec Decimal dbl Double
int Integer lng Long obj Object
sng Single str String

I use the same notation for subroutines and functions (see below) except in the case of powershell, where in most cases I am using names consistent with the standards of powershell cmdlets.

Prefix Type Example
fn Function fnFormatDate()
sr Subroutine srCreateLogFolder()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s