High-quality code writing

Source: Internet
Author: User

1. Add code readability-------annotations, semantic words tags

2. Improve code reusability-------maintenance of public and private components

Design common components need to consider to keep the interface flexible, and highly modular, multiple reuse is not allowed to be easily modified, there is someone to maintain the necessary specification API documentation and demo demo, this is the test ability and experience of the work.

3. Reduce redundancy and streamline code as much as possible

JS, jquery put all the components in a file, through as far as possible to streamline the code and excellent algorithm, "load and easy to use" while moving to "thin", and Yui will be formed by function into a different file, in the page only load the relevant files according to the requirements. This load-on-demand loader approach is user-friendly, "streamlined" while moving closer to "load and ease of use"

4. AX------Pre-conception is important

The main contents of the conception are: norm formulation, design of common components and technical scheme of complex function.

5. Team Communication

High-quality code writing

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.