C # coding standards summarized by myself-preface & directory

Source: Internet
Author: User
Tags coding standards

Recently, I have compiled C # coding standards for my company. I haven't studied much about this in the past. I just thought that the code can make my own sense.

I have referred to the following materials

  1. C # coding conventions
  2. . Net Design Specification Convention usage and mode (version 2nd)
  3. The art of writing readable code
  4. Refactoring-improving the design of existing code
  5. 45 habits of efficient programmers
  6. Clean code

It is very difficult to write a code specification. It depends on the experience of the coders, the level of team members, the specific business needs, and the complexity of the project, project Progress, corporate culture, and so on.

In addition, there are always a lot of ideas to write when writing a pen, but as a standard, it cannot be too long to be simplified.

 

This is the chapter to be written.

1. Naming rules

1.1 naming conventions

1.2 naming and selection

1.3 Best naming practices in specific scenarios

2. Notes

2.1 Comments and conventions

2.2 unnecessary comments

2.3 required comments

3. Format

4. Exception Handling

5. coding Best Practices

In the next few days, I will write the subsequent chapters one after another. I also hope that you can help me think about the coding specifications that need to be covered.

 

After writing the entire code specification, I will provide you with a complete Word document.

Now, I want you to discuss whether there are unreasonable content in the document and what else needs to be covered.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.