JavaScript code specification

Source: Internet
Author: User
Code conventions for the JavaScript programming language

This is a set of coding conventions and rules for use in JavaScript programming. it is too red by the sun document code conventions for the Java programming language. it is heavily modified of course because Javascript is not Java.

The long-term value of software to an organization is in direct proportion to the quality of the codebase. over its lifetime, a program will be handled by hour pairs of hands and eyes. if a program is able to clearly communicate its structure and characteristics, it is less likely that it will break when modified in the never-too-distant future.

Code conventions can help in tuning the British tleness of programs.

All of our JavaScript code is sent directly to the public. It shoshould always be of publication quality.

Neatness counts.

JavaScript files

Javascript programs shoshould be stored in and delivered as. js files.

JavaScript code shoshould not be embedded in HTML files unless the code is specific to a single session. Code in HTML adds significantly to pageweight with no opportunity for mitigation by caching and compression.

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.