C # How do I feel when submitting a project,

Source: Internet
Author: User

C # How do I feel when submitting a project,

C # Feel during project submission

The first time I submitted code to an Internet company yesterday, I encountered many problems, and most of them were code format problems. I would like to record fan's errors and warn myself.

1. Code alignment. Although this has always been noticed, there is still a line of code not alignment. Pay attention to it later. check before submitting the code.

2. extra Space. During the code writing process, you may accidentally press the Space key a few more times. It cannot be seen when you use VS, but once submitted to SVN, red is displayed.

3. Previous companies liked to comment out some codes that could not be used for the time being, but the current boss liked to be clear and clear all the comments.

4. Extra blank lines. Previously, codes of different functions like to be separated by blank lines. There is no need to separate multiple lines and one line with a few lines. Currently, only one line is required.

5. Each class and each interface will introduce namespaces more or less. You need to clear unnecessary namespaces before submitting code, and sort others.

6. Try to avoid overhead when writing code.

7. Refer to others' codes to conform to your own scenarios, including functions, variable naming, and conditions ........

8. The comment must be left blank behind the double slash.

9. The code must be simple, practical, and efficient.

10. to compile the help document of the software, you must clearly explain each parameter, including the specific meaning, type, required or optional, range, and so on. The example given must be in line with the actual situation. There are also some precautions.

11. GET and DELETE BodyStyle = WebMessageBodyStyle. Bare;

PUT and POST BodyStyle = WebMessageBodyStyle. WrappedRequest;

The return type of GET is related to actual requirements. POST generally returns the ID of the added field, and PUT or DELETE generally returns the operation result.

The above are some errors in this Code submission. Remember not to try again.

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.