プログラミングの古典コピペ

プログラミング格言集 via @voluntas
Classic Programming Quotes | Storm Consultancy Blog

面白い。僕もオリジナルの方を読んで面白いと思ったものを翻訳することにしよう。

premature optimization is the root of all evil

早すぎる最適化は諸悪の根源 --- アントニー・ホーア

Walking on water and developing software from a specification are easy if both are frozen.

水の上を歩くのも、仕様に基づいてソフトウェア開発するのも、どちらも簡単だ。それが凍結しているのなら。--- Edward V Berard(Essays on Object-Oriented Software Engineeringの著者)

It always takes longer than you expect, even when you take into account Hofstadter’s Law. - Hofstadter’s Law

なにごともあなたが考えているよりも長い時間がかかる。たとえホフスタッターの法則を考慮に入れたとしても。- ホフスタッターの法則

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.

デバッグは最初にコードを書くのより2倍難しい。つまり、もしあなたが知力を振り絞ってコードを書いたのなら、あなたは(定義から明らかなように)それをデバッグできるほど賢くない。- Brian Kernighan

Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

プログラミングの進捗を行数で計るのは、飛行機建造の進捗を重さで計るようなものだ。 --- ビル=ゲイツ

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

コードはこう書け: あなたのコードをメンテするのが凶暴な精神病者で、しかもあなたの住所を知っているかのように。- Rick Osborne

If debugging is the process of removing software bugs, then programming must be the process of putting them in.

デバッグがソフトウェアからバグを取り除く行程だと言うのなら、プログラミングはソフトウェアにバグを入れる行程に違いない。- E. W. Dijkstra

In theory, theory and practice are the same. In practice, they’re not.

理論上は、理論と現実は一致する。しかし現実には、理論と現実は一致しない。- Yoggi Berra

Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.

二つのものには限りがない。宇宙と人の愚かさだ。ただ、宇宙のほうにはちょっと自信がない。- Albert Einstein

XML is like violence - if it doesn’t solve your problems, you are not using enough of it.

XMLは暴力のようなものだ。もし問題が解決しないのなら、十分使ってないってことだ。- Unknown

Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer.

アインシュタインはこう言った。「自然現象はシンプルな理論で説明されるはずだ。なぜなら神は移り気でも勝手気ままでもないのだから。」そんな信仰はソフトウェア技術者の気休めにはならない。- Fred Brooks