1. Background
It is inevitable to name functions and variables when writing code. Naming is often difficult and an important topic of development specifications. The old man has been on the road for many years, and many of the development specifications are outdated.
2 unexpected gains
Today, net development specifications are newly released, which is of great guiding significance. Although C # development is mentioned in this Article, it still has enough utility for Java and Js.
Http://www.cnblogs.com/luzhihua55/p/CodeConvention7.html
3 disagree
However, some of the content in this article is not recognized by the old man. For example, 2 and 4, the two numbers correspond to and for, and should be common sense, rather than show off.
4 unsolved
The naming of professional terms is still difficult, such as the daily power generation and distribution plan of power plants. Currently, there are several naming cases, but the results are not good.
A name
The name is too long.
B Chinese name
The pure net environment is still usable, but Java ide does not seem to support it, which may cause compatibility and deployment problems.
C pinyin full writing
Too long, and some people are not standard Mandarin
D. First Letter of Pinyin
It's hard to understand. The name is given to another project team.Difficult to migrate to QingtianBut most of us currently use this method
E code name
Provide a brief code for all words. For example, A01 indicates the ID card number, B01 indicates the pension base, and AB indicates the missile front-end fuze.
5. Suggestions
For the naming of professional terms, the professional vocabulary of Chinese is compiled by the requirement personnel, and then the designer uniformly names the vocabulary table to form a comparison table. For long-term projects, you can use the code naming method; for short-term projects, you can use all pinyin. The table needs to be reviewed by a meeting to ensure that everyone can understand the table. Do not have a uniform prefix for naming, in case that developers need to enter too much content before the IDE code prompts can play a role.