变量、类名
1. 找名称,重点的名词。逆向看,是否能看出点意思出来
2. 长度在10-16为合适
3. 限定词放在后面,重要的词放在前面,特例num放到前面表总数,放到后面表示序号
total、sum、average、max、min、record、string、pointer
4. 对仗词
begin/end first/last locked/unlocked min/max next/previous old/new opened/closed visible/invisible source/target source/destination up/down
5. 布尔变量的命名,要么是true要么是false,比如 done、error、found、success、ok
6. 缩写
方法
1. 动宾结构,或者是动词
2. 长度在10-16为合适