Wednesday, April 11, 2007

 

Top 10 Coding Guidelines for C#

Here is a set of coding guidelines that we use to generate code. Using these guidelines we strive to build software that improves the 'able' criteria such as maintainable, readable, reliable, expandable, reusable, etc. The measurement of these criteria is somewhat subjective.

It should be noted that the biggest factors that impact the 'able' criteria are made by selecting C#, .net and Visual Studio development environment. The guidelines merely refine the results.

Here is out top 10 .net C# coding guidelines.
  1. Use Object Oriented (00) principles.

  2. Use unit tests.

  3. Avoid global (or static) properties or variables.

  4. Make extensive use of core .net classes such as Collection and Regular Expressions

  5. Use strong typing and avoid the use of the "object" type.

  6. Use Auto-Generated Code

  7. Use a naming convention.

  8. Use Static Methods and Constants

  9. Use the "this" keyword.

  10. Use Regions to place code in Chapters and Sections.

Labels: ,


Comments: Post a Comment





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]