Happy My Life

日常とか技術とか

プログラミング格言集

Golden Brass Money Clip - Custom / Personalized Money Clip psychopathより。

金言、格言は古今東西いろいろあるのだが、ここではプログラミングに関する格言がまとめられていたので、抜粋して翻訳してみる。翻訳に間違い等があった場合は、コメント等で指摘してください。

We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil 我々は、97%もの時間を占めているという、わずかな効果(を得るためだけ)の作業はやめるべきだ。尚早な最適化(作業)は諸悪の根源だ。 - C. A. R. Hoare

Walking on water and developing software from a specification are easy if both are frozen 水の上を歩くのと、仕様に基いたソフトウェアを開発するのは容易な事だ。どちらとも凍結しているのであれば。 - Edward V Berard

It always takes longer than you expect, even when you take into account Hofstadter’s Law. 作業にはいつでも予測以上の時間がかかるものである - ホフスタッターの法則を計算に入れても。 - Hofstadter’s Law

Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems ある人達が一つの問題に直面した時,彼らは「ああ、正規表現を使えばいいのか.」と考えた。今彼らは二つの問題を抱えている。 - Jamie Zawinski

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. 行数でプログラムの進行状況を知る事は、重さで飛行機の出来上がり具合を知るようなものだ。 - Bill Gates

PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil, perpetrated by skilled but perverted professionals. PHPは小さな悪であり、それは無能なアマチュア達によって創られた。Perlはすばらしく油断のならない悪であり、それはスキルがある変態的なプロフェッショナルによって創られた。 - Jon Ribbens

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. 常に、結局あなたのコードを保守することになる人があなたがどこに住んでいるか知っている狂暴なサイコパス(精神異常者)であると思って、コードを書きなさい。 - Rick Osborne

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. 今日のプログラミングは、より簡単に誰にでも扱えるプログラムを作ろうとするエンジニアと、より愚かな(操作)者を生み出そうとする大宇宙との競争だ。今のところ宇宙が勝っている。 - Rich Cook

I don’t care if it works on your machine! We are not shipping your machine! それがあなたのマシンで動くかどうかは気にかけてない! 私たちはあなたのマシンを出荷していないのだ! - Ovidiu Platon

I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone. 電話と同じくらいコンピュータが簡単になることを常に望んでいる。私はもう電話の使い方が理解できないので、私の願望は達成した。 - Bjarne Stroustrup

A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. コンピュータは、人類がいままで発明してきたものの中で最も速く多くの誤りを犯す事ができる。例外があるとすればピストルかテキーラくらいだろう。 - Mitch Ratcliffe

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

Perl - The only language that looks the same before and after RSA encryption. Perl - RSA暗号化する前と後で同じに見える唯一の言語。 - Keith Bostic

Saying that Java is good because it works on all platforms is like saying anal sex is good because it works on all genders すべてのプラットホームで動くからJavaが良いと言うのは、すべての性別で可能だからアナルセックスが良いと言っているようなものだ。 - Unknown

XML is like violence - if it doesn’t solve your problems, you are not using enough of it. XMLは暴力に似ている–それがあなたの問題を解決しないならば、あなたは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

05/17 6:00 修正

コメント欄の意見を参考に、大幅に修正しました。