📄 《编程之道》(小赵译版) - [蓝森林-自由软件].htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://www.lslnet.com/linux/docs/linux-3274.htm -->
<HTML><HEAD><TITLE>《编程之道》(小赵译版) - [蓝森林-自由软件]</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=Javascript><!--function shutwin() {window.close(); return;}//--></SCRIPT>
<STYLE type=text/css>.small {
FONT-SIZE: 9pt; LINE-HEIGHT: 1.2; FONT-FAMILY: 宋体,Arial
}
.mid {
FONT-SIZE: 14px; LINE-HEIGHT: 1.2; FONT-FAMILY: 宋体,Arial
}
.topbar {
FONT-SIZE: 9pt; COLOR: #00537b; LINE-HEIGHT: 1.2; FONT-FAMILY: 宋体,Arial; TEXT-DECORATION: none
}
</STYLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY text=#000000 vLink=#000000 aLink=#a65300 link=#003399 bgColor=#ffffff
topMargin=8><BASEFONT face=宋体,Arial,Helvetica>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD rowSpan=3><A href="http://www.lslnet.com/" target=_top><IMG height=50
alt=蓝森林首页 src="《编程之道》(小赵译版) - [蓝森林-自由软件].files/page_logo.gif" width=138
border=0></A></TD>
<TD vAlign=bottom align=right height=27><FONT color=#0a5a88 size=2><SPAN
class=small>| <A href="http://www.lslnet.com/linux" target=_top><FONT
color=#74c3f2>返回主页</FONT></A> | <A
href="http://www.lslnet.com/map.htm"><FONT color=#74c3f2>本站地图</FONT></A> |
<A href="http://www.lslnet.com/search.htm"><FONT
color=#74c3f2>站内搜索</FONT></A> | <A
href="mailto:webmaster@lslnet.com"><FONT color=#74c3f2>联系信箱</FONT></A> |
</SPAN></FONT></TD></TR>
<TR>
<TD><IMG height=12 src="《编程之道》(小赵译版) - [蓝森林-自由软件].files/page_word.gif"
width=122 vspace=3></TD></TR>
<TR>
<TD width="100%" bgColor=#74c3f2><IMG height=2
src="《编程之道》(小赵译版) - [蓝森林-自由软件].files/page_line.gif" width=480></TD></TR>
<TR>
<TD colSpan=2><IMG height=6
src="《编程之道》(小赵译版) - [蓝森林-自由软件].files/spacer.gif"></TD></TR>
<TR>
<TD bgColor=#1eb6ff colSpan=2>
<SCRIPT language=JavaScript1.1
src="《编程之道》(小赵译版) - [蓝森林-自由软件].files/menubar.js"></SCRIPT>
</TD></TR>
<TR>
<TD bgColor=#76a6bc colSpan=2>
<TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#bfebff height=18><FONT color=#00537b size=2><SPAN
class=small> <B>您目前的位置:</B><A class=topbar
href="http://www.lslnet.com/">首页</A> > <A class=topbar
href="http://www.lslnet.com/linux">自由软件</A> > <A class=topbar
href="http://www.lslnet.com/linux/linuxcult.htm">自由文化</A>
</SPAN></FONT></TD></TR>
<TR>
<TD align=middle bgColor=#ddf4ff>
<TABLE cellSpacing=0 cellPadding=0 width="86%" border=0>
<TBODY>
<TR>
<TD><BR><BR><FONT size=5><B>《编程之道》(小赵译版)</B></FONT>
<DIV align=right><FONT face=verdana,arial size=2>蓝森林
http://www.lslnet.com 2001年1月1日 21:39</FONT></DIV><BR>
<P>
<H2>The Tao Of Programming —— 编程之道</H2>
<P>Translated By Geoffrey James<BR>
<P>[<A
href="mailto:slimzhao@21cn.com">小赵</A>]翻译整理<BR><BR><FONT
color=black>说明:<BR> 本文是<<编程之道>>
<<编程之禅>><<计算机时代的寓言>>其中的一册, 由小赵翻译整理,
另外, 这三册书的完整电子文档由小赵根据市面上的<< 编程之道>>一书(包括了上面的三卷)录入整理,
随后将一起刊登(参见《编程之道》全译文)。</FONT>
<P><B>Table of Contents 目录</B>
<MENU>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book1">Book
1 -- The Silent Void</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book2">Book
2 -- The Ancient Masters</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book3">Book
3 -- Design</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book4">Book
4 -- Coding</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book5">Book
5 -- Maintenance</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book6">Book
6 -- Management</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book7">Book
7 -- Corporate Wisdom</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book8">Book
8 -- Hardware and Software</A>
<LI><A
href="http://www.lslnet.com/linux/docs/linux-3274.htm#book9">Book
9 -- Epilogue</A> </LI></MENU>
<P>
<HR>
<P>
<H3><A name=book1>The Silent Void</A><BR>Book One</H3>
<P>Thus spake the master programmer: <BR><FONT
color=black>编程大师如是说:</FONT>
<P>
<BLOCKQUOTE>"When you have learned to snatch the error code
from the trap frame, it will be time for you to leave."
<BR><FONT color=black>“当你从我手中夺走水晶球时,就是你离开的时候了。”</FONT>
</BLOCKQUOTE>
<H4>1.1</H4>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.
<BR><FONT
color=black>寂静的虚空里诞生了神秘的东西,这种东西恒久存在永不消失,它是所有程序的根源所在,我不知道怎么形容它,姑且称它为编程之道。</FONT>
<P>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. <BR><FONT
color=black>如果道是完美的,那么操作系统就是完美的,如果操作系统是完美的,那么编译嚣就是完美的,如果编译嚣是完美的,那么应用程序就是完美的,所以用户心满意足,整个世界因此和谐。</FONT>
<P>The Tao of Programming flows far away and returns on the
wind of morning. <BR><FONT color=black>编程之道去如黄鹤来如晨风。</FONT>
<H4>1.2</H4>The Tao gave birth to machine language. Machine
language gave birth to the assembler. <BR><FONT
color=black>道生机器语言,机器语言生汇编嚣。</FONT>
<P>The assembler gave birth to the compiler. Now there are ten
thousand languages. <BR><FONT
color=black>汇编器生编译器,最后产生上万种高级语言。</FONT>
<P>Each language has its purpose, however humble. Each
language expresses the Yin and Yang of software. Each language
has its place within the Tao. <BR><FONT
color=black>不论多么的微不足道,每种语言都有它自己的目的,每种语言都表达了软件的阴阳两极。每种语言都各得其道。</FONT>
<P>But do not program in COBOL if you can avoid it. <BR><FONT
color=black>但是尽量不要用COBOL语言。</FONT>
<H4>1.3</H4>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. <BR><FONT
color=black>道之初,带来了空间和时间,所以,空间和时间是编程的阴阳两极。</FONT>
<P>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. <BR><FONT
color=black>不懂编程之道的程序员常常把空间和时间消耗殆尽,得道的程序员则总是有足够的空间和时间去完成编程任务。</FONT>
<P>How could it be otherwise? <BR><FONT
color=black>否则会是什么样呢?</FONT>
<H4>1.4</H4>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. <BR><FONT
color=black>上士闻道,从而行之。中士闻道,谨而寻之。下士闻道,大笑之。</FONT>
<P>If it were not for laughter, there would be no Tao.
<BR><FONT color=black>大笑不足为道。</FONT>
<P>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. <BR><FONT
color=black>希音不闻,进即是退,大嚣晚成。任何程序都有漏洞。</FONT>
<HR>
<P>
<H3><A name=book2>The Ancient Masters</A><BR>Book Two</H3>
<P>Thus spake the master programmer: <BR><FONT
color=black>编程大师如是说:</FONT>
<P>
<BLOCKQUOTE>"After three days without programming, life
becomes meaningless."<BR><FONT
color=black>三日不编程,食肉无味。</FONT> </BLOCKQUOTE>
<P>
<H4>2.1</H4>The programmers of old were mysterious and
profound. We cannot fathom their thoughts, so all we do is
describe their appearance. <BR><FONT
color=black>远古时代的编程大师们高深莫测,我们不能揣测他们的所思所想,只能描述外表所见。</FONT>
<P>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. <BR><FONT
color=black>他达明,如狐狸过水;机警,如战场上的将军;和善,如主妇款待客人;简单,呆若木鸡;混沌,如深渊之水。</FONT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -