-
Notifications
You must be signed in to change notification settings - Fork 9
avoid
陳鍾誠 edited this page Sep 20, 2018
·
3 revisions
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
- 注意縮排
- 風格一致
- 註解良好,但不要畫蛇添足
JavaScript
C
- 使用 assert
- 使用 unit test/system test/ ....