Recommended 10 articles for style guides

Source: Internet
Author: User
Tags coding standards
Background Python is Google's primary scripting language.  This style guide mainly contains programming guidelines for Python. To help readers to accurately format the code, we provide a configuration file for vim. For Emacs users, leave the default settings. The Python language specification Lint runs pylint definition for your code: Pylint is a tool for finding bugs in Python source code. For less dynamic C and C + + languages, these bugs are usually captured by the compiler. Some warnings may be incorrect due to the dynamic nature of Python.  But false alarms should be few.  Pros: You can capture errors that are easily overlooked, such as input errors, use of unassigned variables, and so on. Cons: Pylint is not perfect. To take advantage of it, we sometimes need: a) around it to write

1. Google Python Programming Style guide

Introduction: Google Python Programming Style guide

2. Google Python Programming style explained

Summary: Background Python is Google's primary scripting language. This style guide mainly contains programming guidelines for Python. To help readers to accurately format the code, we provide a configuration file for vim. For Emacs users, leave the default settings. The Python language specification Lint runs pylint definition for your code: Pylint is a tool for finding bugs in Python source code. For the less dynamic C and C + + languages (Translator Note: The original is not dynamic), these bugs pass.

3. Detailed description of JavaScript code style guide

Introduction: First, the basic format indentation recommended 4 spaces per level, you can set the editor tab = 4 spaces, automatically convert semicolons do not omit semicolons, prevent ASI (auto-insert semicolon) Error line width each line of code is not more than 80 characters, too long should be the operator manually break lines with the end of the line operator And the next line is indented level 2, and if it is an assignment statement, you should also have a blank line between the Zilin line function declaration and the function declaration, the variable Declaration and the function declaration, and the logical block inside the function after the equal sign, Nicholas also recommends leaving a blank line at the top of the process control block, but give the example:

4. JavaScript Programming Style Guide detailed

Introduction: The author summarizes the software engineering principles for JavaScript, clean code JavaScript, based on Robert C. Martin's code cleanliness. This article is the translation of it. It is not necessary to strictly abide by all the principles of this article, and sometimes it may be better to follow some results, depending on the actual situation. This is a code optimization recommendation based on the many years of experience compiled by the author of code cleanliness, but it is only a recommendation. Software engineering has been developing for more than more than 50 years and is still progressing. Now, take these principles as a touchstone and try to use them as team generations.

5. Some HTML code writing style suggestions summary

Introduction: This article mainly introduces some HTML code writing style suggestions summary, mainly based on the Google Html/css Code style guide to organize some of the HTML writing suggestions, the need for friends can refer to the following

6. The inclusion Order of C + + header files

Introduction: The company is implementing coding standards, leading the proposal to basically use the Google C + + programming style guide. Where the "Google C + + Programming style Guide" contains the order of the header files:

7. PHP Coding style Guide (php-fig PSR-2)

Introduction:: This article mainly introduces the PHP Coding style Guide (Php-fig PSR-2), for the PHP tutorial interested students can refer to.

8. Web UI Design Description template (Design style guide) _html/css_web-itnose

Introduction: Web site UI Design description Template (Design style guide)

9. Modern JavaScript development Programming style Idiomatic.js Guide Chinese version _javascript tips

Summary: The following sections describe a reasonable guide to modern JavaScript development styles, not a hard rule. The core idea that it wants to send is a highly unified code style (the law of consistency).

10. Current popular JavaScript code style guide _javascript Tips

Introduction: This article mainly introduces the current popular JavaScript code style guide, and recommended a style inspection tool jshint, can be used with most of the editor Unified Team code style, the need for friends can refer to the following

"Related question and answer recommendation":

Javascript-a = = = undefined and typeof a = = = ' undefined ' which is good?

What is the difference between "if X is not none" and "if not X is none" in

Python?

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.