close

char 1 

If we wirte a clear code for our project, it will help a lot to read and maintenance in the future.

Another reason is if others engineers need to join or fix this project, it's more easy to understand the original develop.

As the ressons, spend more time to write a clear code is more efficient than spend time to fix again and again.

 

char2

Meaningful naming

1. DON'T give similar name. For example:

1. getActitiveAccount();
2. getActitiveAccounts();
3. getActitiveAccountInfo();

We even dont know what's the differents between those name.

How can other people understand?

 

2. Sometimes we will use m or _m to announce global variable in order to help developer more easy to know it's a variable.
Actually, it's not necessary.

 

3.In the same project. As for as possible to maintain the same keywords.

In order to easier use search to find the correct name. 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 A&B 的頭像
    A&B

    網頁前端新手上路辛酸史

    A&B 發表在 痞客邦 留言(0) 人氣()