Coding Rule

My memo;

Just so we can have more easy to read code by having coding rules; here is mine.

Naming

local and only local variable is usually single letter or very short ones like, a, b, c, x etc.

Input variable names start with lower letter, full name, capital letter if it consist of more than 2 words, like isGood, nameOfFunction.

My own class names are all lower case, even if it is consists of more than 2 words.  Variable inside of classes have Capital letter starting like, City, Name, NameOfFunction etc.

 

 

 

Leave a Reply