Some coding standards

1. Dont use illegal name like similar naming, _XXX, etc.
2. Using namespace for a project.
3. All switch should have a default statement.
4. Use integer 0 instead of NULL for null pointer.
5. Always treat include file name as case-sensitive to make cross-platform easier because unlike windows, some other platform does case sensitive.
6. The size of built-in types have different length in different platforms. For example, an int type will diff..
7. Below pic:
Some coding standards_第1张图片

你可能感兴趣的:(DI)