狠狠爱成人网_日韩一级在线_国产综合自拍_亚洲精品韩国_亚洲视频导航_麻豆成人在线播放_欧美jjzz_一区在线视频观看_美脚丝袜一区二区三区在线观看_欧美91视频

當前位置:系統之家 > 技術開發教程 > 詳細頁面

編程之道(完全小趙譯版)上輯

編程之道(完全小趙譯版)上輯

更新時間:2024-04-11 文章作者:未知 信息來源:網絡 閱讀次數:

《編程之道》(小趙譯版) 藍森林 http://www.lslnet.com 2001年1月1日 21:39

The Tao Of Programming —— 編程之道


Translated By Geoffrey James

[小趙(slimzhao@21cn.com)]翻譯整理

說明:
  本文是<<編程之道>> <<編程之禪>><<計算機時代的寓言>>其中的一冊, 由小趙翻譯整理, 另外, 這三冊書的完整電子文檔由小趙根據市面上的<< 編程之道>>一書(包括了上面的三卷)錄入整理, 隨后將一起刊登(參見《編程之道》全譯文)。
Table of Contents 目錄
  • Book 1 -- The Silent Void
  • Book 2 -- The Ancient Masters
  • Book 3 -- Design
  • Book 4 -- Coding
  • Book 5 -- Maintenance
  • Book 6 -- Management
  • Book 7 -- Corporate Wisdom
  • Book 8 -- Hardware and Software
  • Book 9 -- Epilogue



  • The Silent Void
    Book One


    Thus spake the master programmer:
    編程大師如是說:
    "When you have learned to snatch the error code from the trap frame, it will be time for you to leave."
    “當你從我手中奪走水晶球時,就是你離開的時候了。”

    1.1

    Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming.
    寂靜的虛空里誕生了神秘的東西,這種東西恒久存在永不消失,它是所有程序的根源所在,我不知道怎么形容它,姑且稱它為編程之道。
    If the Tao is great, then the operating system is great. If the operating system is great, then the compiler is great. If the compiler is greater, then the applications is great. The user is pleased and there is harmony in the world.
    如果道是完美的,那么操作系統就是完美的,如果操作系統是完美的,那么編譯囂就是完美的,如果編譯囂是完美的,那么應用程序就是完美的,所以用戶心滿意足,整個世界因此和諧。
    The Tao of Programming flows far away and returns on the wind of morning.
    編程之道去如黃鶴來如晨風。

    1.2

    The 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.3

    In 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.4

    The 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.
    希音不聞,進即是退,大囂晚成。任何程序都有漏洞。

    The Ancient Masters
    Book Two


    Thus spake the master programmer:
    編程大師如是說:
    "After three days without programming, life becomes meaningless."
    三日不編程,食肉無味。

    2.1

    The 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.2

    Grand Master Turing once dreamed that he was a machine. When he awoke he exclaimed:
    超級大師圖靈曾夢見自己是一臺機器,醒后他這樣回憶:
    "I don't know whether I am Turing dreaming that I am a machine, or a machine dreaming that I am Turing!"

    “我不知道是圖靈夢見自己變成機器還是機器夢見自己變成圖靈。”

    2.3

    A 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."
    “他們生活在道中”。

    2.4

    A novice asked the Master: "Here is a programmer that never designs, documents, or tests his programs. Yet all who know him consider him one of the best programmers in the world. Why is this?"
    一個初學者問主管經理:“有一個程序員,他從來不預先設計,也不寫文檔,甚至不測試他的程序,但是知道他的人都認為他是世界上最偉大的程序員,為什么呢?”
    The Master replies: "That programmer has mastered the Tao. He has gone beyond the need for design; he does not become angry when the system crashes, but accepts the universe without concern. He has gone beyond the need for documentation; he no longer cares if anyone else sees his code. He has gone beyond the need for testing; each of his programs are perfect within themselves, serene and elegant, their purpose self-evident. Truly, he has entered the mystery of the Tao."
    經理說:“那個程序員掌握了道。他不需要預先進行設計;系統崩潰時他也從不煩燥,只是接受發生的一切而不管發生的事是好是壞 。他不需要寫文檔,他從不顧及有沒有人看他寫的代碼。他也不需要進行測試;他寫的每個程序都有一個完美的自我,平靜而優雅,它們的目的不言自明。他已經真正掌握了道的精髓。”

    Design
    Book Three


    Thus spake the master programmer:
    編程大師如是說:
    "When program is being tested, it is too late to make design changes."

    “程序被測試時再去改變它的設計已經太晚了。”

    3.1

    There once was a man who went to a computer trade show. Each day as he entered, the man told the guard at the door:
    曾經有一個人參加計算機展覽,每天他進門時都對門衛說:
    "I am a great thief, renowned for my feats of shoplifting. Be forewarned, for this trade show shall not escape unplundered."
    “先警告你,我是偷盜高手,我入室偷盜的本領聞名遐邇。這次展覽會也再劫難逃。”

    This speech disturbed the guard greatly, because there were millions of dollars of computer equipment inside, so he watched the man carefully. But the man merely wandered from booth to booth, humming quietly to himself.
    警衛因此大動干戈,因為里面有價值百萬的計算機設備,所以他牢牢盯緊了這個人,但是這個人只是從一個攤位逛到另一個攤位,一邊平靜地喃喃自語。
    When the man left, the guard took him aside and searched his clothes, but nothing was to be found.
    當這個人離開時,警衛搜了他的身,但是什么也沒有發現。
    On the next day of the trade show, the man returned and chided the guard saying: "I escaped with a vast booty yesterday, but today will be even better." So the guard watched him ever more closely, but to no avail.
    展覽會的第二天,這個人又對警衛說:“昨天我滿載而歸,但是今天我會收獲更大。”所以警衛更加小心地盯緊他,但是這樣做完全于事無補。
    On the final day of the trade show, the guard could restrain his curiosity no longer. "Sir Thief," he said, "I am so perplexed, I cannot live in peace. Please enlighten me. What is it that you are stealing?"
    展覽會的最后一天,警衛再也不能忍住他的好奇心了。“小偷先生,”他說,“ 你說我驚慌不安,請告訴我,你到底偷了什么?”。
    The man smiled. "I am stealing ideas," he said.
    這個人笑笑說:“我在偷想法。”

    3.2

    There once was a master programmer who wrote unstructured programs. A novice programmer, seeking to imitate him, also began to write unstructured programs. When the novice asked the master to evaluate his progress, the master criticized him for writing unstructured programs, saying: "What is appropriate for the master is not appropriate for the novice. You must understand the Tao before transcending structure."
    有一位編程大師,他寫非結構化的程序,一位初學者刻意模仿他,也寫非結構化的程序。當他讓大師看他的進步時,大師批評了他的非結構化程序:“ 對一位編程大師合適的東西未必對一個初學者同樣合適,在超越結構化之前,你必須理解編程之道。”

    3.3

    There was once a programmer who was attached to the court of the warlord of Wu. The warlord asked the programmer: "Which is easier to design: an accounting package or an operating system?"
    ###有人問一位程序員,“一個財務軟件和一個操作系統哪個更容易設計?”
    "An operating system," replied the programmer.
    “是操作系統”,這位程序員回答說。
    The warlord uttered an exclamation of disbelief. "Surely an accounting package is trivial next to the complexity of an operating system," he said.
    此人大惑不解。他說:“顯然一個財務軟件比起操作系統來說其復雜性是微不足道的”。
    "Not so," said the programmer, "when designing an accounting package, the programmer operates as a mediator between people having different ideas: how it must operate, how its reports must appear, and how it must conform to the tax laws. By contrast, an operating system is not limited my outside appearances. When designing an operating system, the programmer seeks the simplest harmony between machine and ideas. This is why an operating system is easier to design."
    程序員說:“不,設計財務軟件時,一個程序員必須成為持不同意見的用戶與計算機的一個中介,他必須了解用戶的操作習慣,報表要是什么形式,如何遵循稅法。相反,一個操作系統完全與這些外部的東西無關。設計操作系統,程序員只需要達到自己的設想與機器之間的簡單的和諧。這就是為什么操作系統反而比財務軟件更容易設計。”
    The warlord of Wu nodded and smiled. "That is all good and well, but which is easier to debug?"
    這些人笑著說。“不錯,但是哪一個更容易調試呢?”
    The programmer made no reply.
    程序員沒有回答。

    3.4

    A manager went to the master programmer and showed him the requirements document for a new application. The manager asked the master: "How long will it take to design this system if I assign five programmers to it?"
    一個項目經理帶給編程大師一個項目的需求,然后問大師:“如果我給你5個程序員,要多少時間設計這個項目?”
    "It will take one year," said the master promptly.
    “一年”,大師說。
    "But we need this system immediately or even sooner! How long will it take it I assign ten programmers to it?"
    “但是我們等不了那么長時間,越快越好,如果10程序員呢?”
    The master programmer frowned. "In that case, it will take two years."
    大師皺了一下眉頭說:“那就要花2年”。
    "And what if I assign a hundred programmers to it?"
    “那,100年程序員呢?”
    The master programmer shrugged. "Then the design will never be completed," he said.
    大師聳了聳肩說:“那這個項目就永遠完不成了。”

    Coding
    Book Four


    Thus spake the master programmer:
    編程大師如是說:
    "A well-written program is its own heaven;
    a poorly-written program is its own hell."
    “寫的好的程序是它自己的天堂,寫的不好的程序是它自己的地獄”

    溫馨提示:喜歡本站的話,請收藏一下本站!

    本類教程下載

    系統下載排行

    狠狠爱成人网_日韩一级在线_国产综合自拍_亚洲精品韩国_亚洲视频导航_麻豆成人在线播放_欧美jjzz_一区在线视频观看_美脚丝袜一区二区三区在线观看_欧美91视频
    欧美日韩成人综合在线一区二区| 成人高清视频免费观看| 亚洲欧美伊人| 欧美一区二区美女| 青青草97国产精品免费观看无弹窗版| 精品69视频一区二区三区Q| 精品国产免费一区二区三区香蕉| 看电影不卡的网站| 久久国产日本精品| 亚洲一区二区综合| 国产欧美高清| 亚洲最大色网站| 日韩亚洲不卡在线| 中文字幕中文字幕一区二区| 欧美69视频| 日本一区二区高清| 欧美久久在线| 国产欧美一区二区精品性色超碰| www.欧美精品一二区| 欧美大胆一级视频| 成人午夜视频在线观看| 欧美一级在线免费| 国产高清不卡一区| 欧美电视剧免费全集观看| 成人免费视频国产在线观看| 日韩免费成人网| 成人午夜av在线| 26uuuu精品一区二区| 色综合天天综合在线视频| 日本一区二区三区高清不卡| 激情久久久久久久| 一区二区三区在线视频播放| 亚洲综合国产| 青草av.久久免费一区| 欧美日韩视频在线第一区 | 久久国产精品第一页| 欧美另类久久久品| 丁香啪啪综合成人亚洲小说| 精品国免费一区二区三区| 午夜久久tv| 亚洲天堂福利av| 亚洲综合国产| 青青草原综合久久大伊人精品 | 精品国产制服丝袜高跟| 91看片淫黄大片一级| 日韩美女啊v在线免费观看| 精品av久久707| 99天天综合性| 亚洲色图欧洲色图| 老司机精品福利视频| 国产又粗又猛又爽又黄91精品| 日韩精品最新网址| 在线播放日韩| 青娱乐精品在线视频| 日韩欧美在线一区二区三区| 欧美大片专区| 亚洲成人免费在线观看| 欧美一区二区免费观在线| 欧美~级网站不卡| 亚洲成人动漫在线免费观看| 日韩一级视频免费观看在线| 伊人久久大香线蕉综合热线| 日韩二区三区在线观看| 欧美www视频| 在线视频亚洲| 国产成人8x视频一区二区| 国产精品久久久久影院色老大 | 一区二区高清视频| 国产乱码精品一区二区三 | 欧美日韩高清影院| 欧美一区免费| 日韩国产欧美三级| 久久综合国产精品| 香蕉久久夜色| av亚洲精华国产精华| 亚洲国产精品麻豆| 欧美成人艳星乳罩| 国产日韩一区二区| 成人网页在线观看| 香蕉乱码成人久久天堂爱免费| 日韩欧美一区电影| 国产精品三区www17con| 国产成人夜色高潮福利影视| 亚洲一区二区在线视频| 欧美成人精精品一区二区频| 另类av一区二区| 色综合色狠狠天天综合色| 免费美女久久99| 亚洲婷婷综合久久一本伊一区| 91麻豆精品国产91久久久久久| 国产欧美日本| 色综合色综合色综合| 国产在线精品一区在线观看麻豆| 日韩一区日韩二区| 精品久久久久久最新网址| 玖玖玖国产精品| 亚洲婷婷在线| 北条麻妃国产九九精品视频| 奇米色一区二区三区四区| ...中文天堂在线一区| 欧美一级免费大片| 色哟哟亚洲精品| 亚洲精品极品| 欧美激情1区| 国产成人免费9x9x人网站视频| 亚洲综合另类小说| 国产精品理论片在线观看| 26uuu精品一区二区| 欧美二区三区91| 色乱码一区二区三区88| 99精品国产在热久久婷婷| 欧美激情国产日韩| 北岛玲一区二区三区四区| 国内精品国产三级国产a久久| 午夜视频久久久久久| 中文字幕一区二区在线播放| 欧美精品一区二区三区高清aⅴ| 欧美日本一道本在线视频| 一本在线高清不卡dvd| 亚洲国产高清视频| 国产精品国色综合久久| 色综合视频在线观看| 99久久久国产精品| 福利电影一区二区三区| 国产一区久久久| 久久国产精品第一页| 麻豆国产精品官网| 视频一区二区三区在线| 亚洲国产精品自拍| 一区二区三区在线观看动漫 | 蜜桃一区二区三区在线| 偷拍一区二区三区四区| 亚洲成人av福利| 午夜精品影院在线观看| 午夜伊人狠狠久久| 亚洲成a人v欧美综合天堂| 亚洲国产中文字幕在线视频综合| 一区二区三区精品视频| 一区二区三区在线免费播放| 艳妇臀荡乳欲伦亚洲一区| 一区二区三区免费在线观看| 亚洲一区二区三区四区不卡| 亚洲一区二区三区中文字幕| 亚洲成av人片在线观看无码| 亚洲高清免费视频| 视频在线在亚洲| 日本va欧美va瓶| 国内精品国产成人| 成人性色生活片| 欧美在线影院| 狠狠色丁香久久综合频道| 99re66热这里只有精品4| 国产精品美女诱惑| 在线视频中文字幕一区二区| 欧美老肥妇做.爰bbww| 欧美第一区第二区| 国产拍欧美日韩视频二区| 亚洲欧美另类图片小说| 香蕉久久一区二区不卡无毒影院| 麻豆成人免费电影| 粉嫩13p一区二区三区| 欧美在线精品一区| aa亚洲婷婷| 在线免费不卡电影| 日韩你懂的在线播放| 国产精品网曝门| 亚洲午夜久久久久久久久电影院| 久久精品99国产精品| 不卡一区二区三区四区| 亚洲调教视频在线观看| 久久久久综合| 日韩精品一区国产麻豆| 国产精品的网站| 日韩av一级片| 99久久精品国产导航| 99热在线精品观看| 欧美日韩免费高清一区色橹橹| 久久久久久久电影| 亚洲综合色噜噜狠狠| 国产一区二区三区综合| 午夜精品免费| 日本电影欧美片| 久久亚洲一区二区三区明星换脸 | 欧美电视剧在线看免费| 亚洲精品第一国产综合野| 精东粉嫩av免费一区二区三区| 欧美黄在线观看| 91成人在线精品| 国产视频不卡一区| 亚洲电影在线播放| 99久久精品免费看| 色婷婷综合久久久中文一区二区| 欧美精品一区二区三区四区 | 中文字幕国产一区| 六月丁香综合在线视频| 欧美日本不卡高清| 欧美亚洲动漫制服丝袜| 国产精品护士白丝一区av| 精品中文字幕一区二区| 亚洲精品一级|