Tuesday, 24 February 2015

CODING STANDARDS AND NAMING CONVENTIONS

 Explicitly declare the scope of the event delegate e.g:- private

 Private class level variable names should have preceding _(underscore) on them

 Private class member variable names should start with lower case character

 Delegate Method Names should start with Upper case character

 Remove _(underscore) from property names, make the property names indicate what they are for

 public property should not start with a _ and lower case char

 use  " this." before accessing any class level variable

 Declare scope, and move the variable declaration with others

 If we are not utilizing catch then don't use try block let the exception propagate to the calling code

 Properly Format the message shown in message box, with title,icon, button & a properly formatted message string

 Private properties should be names like a normal property

 If Properties are not used outside the class why not declare them as variables instead.


No comments:

Post a Comment