Few Tips to maintain Standard patterns in Coding.
1. Proper indentations : Appropriate placing of brackets where one can easily differentiate all methods and loops.
2.Proper placing of Comments: One should put appropriate comments before important methods,loops and important variables The comments should properly describe the functionality of methods and loops.
3.Naming and Declaration : A standard way of declaring and defining variables,files and methods. Say if we have an Employee Class ,objects to be declared would be say emp1,emp2 etc.
4.Encapsulation: A good way of Encapsulation is to have properties . Only neccessary variables should be exposed to rest of code.
5.Reuse of Variables: Important data like Connection string needs to be declared at Class level. So the entire class can simply use the variable again.
n6.Reusable Files. Frequently used files should create a project. Thus all the rest assemblies can also use it.
7. Versioning : Whenever any changes or enhancement activity is carried out in the project, Proper comments along with versions need to be placed.Versioning helps to monitor all the changes in a project.
Please provide reviews of above article.
More tips are always welcomed .
|
No responses found. Be the first to respond and make money from revenue sharing program.
|