This heading details about the coding standard conventions that has to be followed for a website / web application development. This is documented with reference PHP/ASP.NET/JSP/Silverlight/HTML and all different databases.
1) Website Folder Structure Guidelines:
All the code for a website will be organized well in folders.
All Images will be placed in a folder named ‘IMG’.
All CSS Files will be placed in a folder named ‘CSS’.
All File names will be named meaningfully.
There will not be any inline styles used for the HTML Elements unless otherwise it is absolutely necessary.
2) Coding Guidelines:
All variable names, control names and CSS class names will be named meaningfully and in camel conventions.
Eg: counterVariable, printCounter, collegeName, studentHomeAddress etc
All HTML controls will be named with the prefix as given below.
–> TextBox: txt
–> Plain Button: pb
Eg: pbSignup and so on
–> Submit Button:sb
–> Reset Button:rb
–> File Upload:fl
–> Hidden Field:hen
–> Table: tb
All variables controls will be named with the prefix as given below indicating their datatype
–> String: s
And so on
–> Boolean: b
–> Short: sn
–> All class names, property names etc will be named meaningfully in Pascal convention i.e. class Employee, property FirstName
3) Database Standards:
All database objects will be named meaningfully and in ALL CAPS format.
Eg: Table Name: EMPLOYEE_MASTER
Column Name: FIRST_NAME
All tables will have a column named ‘DTE_CREATED’ which stores the timestamp of the record inserted.
In all tables where tracking the updating of the record is necessary the timestamp at which the record was updated should be stored in the column named ‘DTE_UPDATED’