web development coding standards
In today’s world the number of web design companies are increasing rapidly. Their are numerous tools and programming languages from which website can be easily developed. Now a days the persons are taking short duration course and fulfilling requirement of the customers. The programmers try to complete maximum numbers of projects to earn lots of moneys so they forget to maintain coding standards. The coding standards makes any website rank good in search engines. Although the website might be developed with any programming languages like PHP/ASP.NET/JSP/Silverlight/HTML the general coding standards should be followed. This article will help the programmers to remember about the coding standard conventions that has to be followed for a website / web application development.
1) Folder Structure:
The simple folder structure will maintain your site in top
a) The code must be organized well in a folders with meaningful word.
b) Place an images with a folder named ‘IMG’.
c) CSS Files must be placed in a folder named ‘CSS’.
d) JavaScript Files will be placed in a folder named ‘JS’.
e) Avoid using Javascript in the layout page unless otherwise it is absolutely necessary.
f) Don’t use any inline styles css.
2) Simple Coding Guidelines:
Try of using all variable names, control names and CSS class names with meaningfully and in camel conventions.
Eg: firstName, temporaryAddress, printCounter, etc
All HTML controls will be named with the prefix as given below.
–> TextBox: txt
Eg: txtFirstName
–> Plain Button: pb
Eg: pbSignup and so on
All variables controls will be named with the prefix as given below indicating their datatype
–> Integer:n
Eg: nCounter
–> String: s
3) Database Standards:
All database objects will be named meaningfully and in ALL CAPS format.
Eg: Table Name: USER_TBL
Column Name: FIRST_NAME
All the above mentioned points are very normal, any programmer can understand and implement these simple technical terms. Actually the standard of any website will be in high position if its noted from the beginning. It decreases the bugs and troubleshooting the problems will be much easier. If all these are overcomed the search engines seperates from others to rank in top. So for Search Engine Oprimization, it really plays an vital role indirectly.