Coding convention from TL

1. Be careful to add protective mechanism to prevent possible errors.

2. save the repetitive calling truck to one variable for readability.

3. Group codes to each section for readability.

4. Consider which part of the line should generate possible errors and prevent it.

5. If error check in the beginning, just exit method, do not use if-else, it increases difficulties when the else part is really long.  

你可能感兴趣的:(工作生涯)