Posts

Showing posts from November, 2012

Part– II : Coding standards

These are the main checklist I used to follow in day to day code development and maintenance. Hope this might help some of you new people. If there is any mistakes/typo please do not hesitate to comment. Coz these are my personal views and opinions 1. Need to avoid unnecessary comments especially while releasing a build 2. Reduce as much lines of code as possible 3. if a variable is used only once then declare it locally if possible 4. Follow the naming conventions especially in DB layer. This helps a lot I promise :) 5. Method name should tell what it does. Do not use miss-leading names. If the method name is obvious, there is no need of documentation explaining what the method does 6. Make a note or summary at top of the page if the code was developed my multiple persons. it helps to track when and which kind of development started 7. Make sure that the required input values gets logged while logging the error message in catch block 8. Avoid