My coding style is roughly in the following situations: I follow the leadership of the organization, the boss in the company is right, and the big guys in the school teach well ╮(╯▽╰)╭ Only some other small open source projects of their own follow The following style→_→

## 一些小细节

• 赋值等号两边要有空格，如b = c; b = 15;

First of all,

The four-space Tab indentation is great! ! !
The four-space Tab indentation is great! ! !
The four-space Tab indentation is great! ! !

The braces do not wrap! ! !
The braces do not wrap! ! !
The braces do not wrap! ! !

Name it so that others can understand it at a glance. Ideally, looking at your code is as comfortable as reading a little English poem ::aru:insidious::

### Often/variable naming

The compiler constants are all uppercase, and the characters are connected by a single underscore. Such as:

Variables are basically named with small camels. The rule is to connect words directly (without underscores), the first word is all lowercase, and the first letter of subsequent words is capitalized. Such as:

Variable names that are frequently called should not be too long, but they should be clear.
To achieve this, you can try to partially omit non-initial vowels in words. For example, user can be abbreviated as usr, and password can be omitted as passwd or psswd. But the simplified name still needs to be easy to recognize.

Global variables are named using g_ plus the variable name, such as

Local static variables use s_ plus the variable name, such as

Constant variables, naming the same as ordinary variables, such as

### Function Naming

The function naming technique is stolen from the famous Nginx and slightly changed on its basis.
The basic rule is lowercase label name+__ (double underscore)+lowercase verb+lowercase noun()
Use a single underline link between nouns and nouns.
E.g:

Among them, db means Database, prompting that this function belongs to the database operation label, and its function is to obtain user information.

If you don’t need tags (such as in some object-oriented languages), you can arbitrarily omit tags. Such as:

Different from variable naming, function naming need not be short, aiming at expressing clearly the function function

In fact, if you can name the variable function well, you don’t need any comments, but unfortunately, we still have to comment. .

### File Notes

File comments are mainly used to declare some file functions, category names, file names, copyright and other information. A style is as follows:

• There must be spaces on both sides of the equal sign, such as b = c; b = 15;’’