你对编程的“道”和“术”的理解( 二 )


道大,操作系统大,译器大,应用亦大。用户喜之,天地和谐。
道,去若飞鹤来若晨风。
1.2The Tao gave birth to machine language. Machine language gave birth to the assembler.The assembler gave birth to the compiler. Now there are ten thousand languages.Each language has its purpose, however humble. Each language expresses the Yin and Yang of software. Each language has its place within the Tao.But do not program in COBOL if you can avoid it.道生机语,机语生汇编,汇编生译器。万码天成。
诸码负阴而抱阳,冲气以为和,各得其道。
勿用COBOL。
1.3In the beginning was the Tao. The Tao gave birth to Space and Time. Therefore, Space and Time are the Yin and Yang of programming.Programmers that do not comprehend the Tao are always running out of time and space for their programs. Programmers that comprehend the Tao always have enough time and space to accomplish their goals.How could it be otherwise?始有道,道生时空。时空,编程之阴阳。
不得道者失时空,得道者时空盈余以完工。
其有异乎?
1.4The wise programmer is told about the Tao and follows it. The average programmer is told about the Tao and searches for it. The foolish programmer is told about the Tao and laughs at it.If it were not for laughter, there would be no Tao.The highest sounds are the hardest to hear. Going forward is a way to retreat. Greater talent shows itself late in life. Even a perfect program still has bugs.上士闻道,勤而行之;中士闻道,勤而寻之;下士闻道,大笑之。
不笑不足以为道。
大音希声,进道若退,大器晚成,大程亦错。
第二章 古师Thus spake the master programmer:"After three days without programming, life becomes meaningless."师曰:“三日不编程,食肉无味。”
2.1The programmers of old were mysterious and profound. We cannot fathom their thoughts, so all we do is describe their appearance.Aware, like a fox crossing the water. Alert, like a general on the battlefield. Kind, like a hostess greeting her guests. Simple, like uncarved blocks of wood. Opaque, like black pools in darkened caves.Who can tell the secrets of their hearts and minds?The answer exists only in the Tao.古之善为程序者,微妙玄通,深不可识。夫唯不可识,故强为之容:
豫兮,若冬涉川;犹兮,若畏四邻;俨兮,其若客;敦兮,其若朴;混兮,其若浊。
孰能若此?
道也。
2.2Grand Master Turing once dreamed that he was a machine. When he awoke he exclaimed:"I don\u0026#39;t know whether I am Turing dreaming that I am a machine, or a machine dreaming that I am Turing!"昔者图灵梦为电脑,俄然觉,则蘧蘧然:
“不知图灵之梦为电脑欤?电脑之梦为图灵欤?"
2.3A programmer from a very large computer company went to a software conference and then returned to report to his manager, saying: "What sort of programmers work for other companies? They behaved badly and were unconcerned with appearances. Their hair was long and unkempt and their clothes were wrinkled and old. They crashed out hospitality suites and they made rude noises during my presentation."The manager said: "I should have never sent you to the conference. Those programmers live beyond the physical world. They consider life absurd, an accidental coincidence. They come and go without knowing limitations. Without a care, they live only for their programs. Why should they bother with social conventions?""They are alive within the Tao."大社之人与大会,返,语于御者曰:“其程序员者,何类也?行无礼让,言无信雅,发无结束,衣无洁整。待客无法,扰我言辞。”


推荐阅读