"Writing maintainable JavaScript" - programming style

Development team to write JS code maintainability first unified programming style, no matter who wrote the code looks like out of a person's hand, so we can better understand each other and maintain code

Programming style is a standardized coding, coding specification also includes the best aspects of time, the files and directories planning and comment
coding specification is important for several reasons:

  1. Software life cycle cost of 80% of consumption in the Maintenance (personal experiences T_T)
  2. Almost all software maintainers are not its original authors
  3. Coding standards to improve the readability of the software, allowing engineers to quickly and fully understand the new code
  4. If the source code released as a product, you need to make sure that it is a complete package, and like other products that you create as neatly

Check the programming style tools: JSLint and JSHint, the code can identify potential errors can give a warning on the programming style for your code

Author programming style, will mention jQuery Core Style Guide, Goolge style guide of JavaScript, Dojo programming style guides Guide

The following is the author of the JavaScript programming style

Guess you like

Origin www.cnblogs.com/Grani/p/11032486.html