avoid - cccnqu/se107a GitHub Wiki
避免 Bug
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. Brian Kernighan and P.J. Plauger, The Elements of Programming Style
排版要清楚
- 注意縮排
- 風格一致
- 註解良好,但不要畫蛇添足
使用語法檢查工具 (Lint)
JavaScript
C
JavaScript
Assert
- 使用 assert
- 使用 unit test/system test/ ....