C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Tips » General »

Coding Standards


Posted Date: 04 Oct 2009    Resource Type: Tips    Category: General
Author: Sachin KulkarniMember Level: Silver    
Rating: 1 out of 5Points: 3



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 .



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Few Coding Standards.  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Javascript popup
Previous Resource: Change Database Name
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use