読もう! プログラミング作法

なつたんさんに触発されて

Each language feature that prevents some problem has a cost of its own. If a higher-level language makes the simple bug disappear automatically, the price is that it makes it easier to create higher-level bugs. No language prevents you from making mistakes.

P.166
ある種の問題を防止する言語の機能はそれぞれ固有の代償をともなう。高級言語によって単純なバグが自動的に消滅するのであれば、その代償として高級なバグが生じやすくなる。プログラマが決して間違いを犯さないようにしてくれる言語など存在しない。

Every bug you can find teach you how to prevent a similar bug from happening again or to recognize it if it does.

P.165
(優れたプログラマはコードを書くのと同じくらいの時間をデバッグに費やし、自分の間違いから教訓を学ぼうとする)
バグを発見するたびに、そのバグと似たようなバグが2度と発生しないようにする方法や、それが再び発生した場合につきとめる方法を学べる。

プログラミング作法

プログラミング作法