这本书居然可以结合老子的《南华经》、庄子的《庄子》,以及《论文》来谈论编程,编程似乎成为了如此文艺的东西,深不可测。后来作者还写了《编程之禅》、《计算机寓言——信息时代的启示》。如此有逼格的东西,下面摘录几句,有点儿意思。

The Silent Void
“When you have learned to snatch the error code from the trap frame, it will be time for you to leave.”
“当你从我手中夺走水晶球时,就是你离开的时候了。”

The Tao of Programming flows far away and returns on the wind of morning.
编程之道去如黄鹤来如晨风。

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.
上士闻道,从而行之。中士闻道,谨而寻之。下士闻道,大笑之。

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
“After three days without programming, life becomes meaningless.”
三日不编程,食肉无味。

“I don’t know whether I am Turing dreaming that I am a machine,
or a machine dreaming that I am Turing!”
“我不知道是图灵梦见自己变成机器还是机器梦见自己变成图灵。”

Design
“When program is being tested, it is too late to make design changes.”
“程序被测试时再去改变它的设计已经太晚了。”

Coding
“A well-written program is its own heaven;
a poorly-written program is its own hell.”
“写的好的程序是它自己的天堂,写的不好的程序是它自己的地狱”

A program should follow the Law of Least Astonishment. What is this law?
It is simply that the program should always respond to the user in the
way that astonishes him least.
一个程序应该遵循最小惊讶原则,什么是最小惊讶原则?就是说一个程
序应该最小程度地引起用户的惊讶。

A program, no matter how complex, should act as a single unit.
The program should be directed by the logic within rather than by outward appearances.
无论一个程序无论有多么复杂都应该是一个单一的整体。程序是被它的内部逻辑所指引而不是它的外观表现。

If the program fails in these requirements, it will be in a state of disorder and confusion.
The only way to correct this is to rewrite the program.
如果一个程序不能满足所要的需求,它就会处于混乱无序的状态中。唯一的出路就是重写这个程序。

“The Tao is embodied in all software – regardless of how insignificant,” said the master.
大师说:“道存在于任何软件中--无论是多么没有意义的软件”。

Mainteance
A well-used door needs no oil on its hinges.
A swift-flowing steam does no grow stagnant.
Neither sound nor thoughts can travel through a vacuum.
Software rots if not used.
经常使用的门不需要往门轴里上油。
流动的东西就不会停滞不前。
流水不腐,户枢不蠹。–王磊
声音和思想都不能在真空里传播。
软件不用就会腐朽。

Management
“Let the programmer be many and the managers few – then all will be productive.”
“增加程序员,减少经理–这样他们都可提高效率。”

When managers make commitments, game programs are ignored. When accountants make long-range plans, harmony and order are about to be restored. When senior scientists address the problems at hand, the problems will soon be solved.
经理分配任务时不会包括游戏,会计师做长期计划时,应该做到面面俱到,皆大欢喜。科学家提出一个问题,就会很快得到解决。

Truly, this is the Tao of Programming.
这才是编程之道。

Corporate Wisdom
“You can demonstrate a program for a corporate executive, but you can’t make him computer literate.”

In the east there is a shark which is larger than all other fish. It changes
into a bird whose winds are like clouds filling the sky. When this bird
moves across the land, it brings a message from Corporate Headquarters.This message it drops into the midst of the program- mers, like a seagull making its mark upon the beach. Then the bird mounts on the wind and, with the blue sky at its back, returns home.
在遥远的东方,传说有一只巨大的鱼,叫鲲,它变成了一只大鸟,叫鹏,鹏的翅膀可以遮天蔽日,这只大鸟经过陆地的时候,它带来了一个消息,它把这个消息丢在程序员中,就象一只海鸥在海滩上做的记号,然后鹏背负蓝天,乘风而上,回家去了。

The novice programmer stares in wonder at the bird, for he understands it not.
The average programmer dreads the coming of the bird, for he fears its message.
The master programmer continues to work at his terminal, for he does not know that the bird has come and gone.
初学者惊恐地看着这只鸟,根本不敢相信,中级程序员担心这只鸟的到来,因为它害怕它带来的消息,编程大师则继续在他的终端前工作他根本不知道这只鸟曾经来过。

Hardware and Software
“Without the wind, the grass does not move.Without software, hardware is useless.”
风不动则草不动,没有软件,硬件只是一堆发热的电子器件

Epilogue
“Time for you to leave.”
“现在是你出师的时候了。”

《编程之禅》
开始时似乎比较容易的事情,结尾时往往是最困难的。这就是为什么程序员说“开发前面的百分之九需要一半时间,而另一半时间则用来完成最后的百分之十。”


程序不过是梦,
生于无形无象的禅中,
我们只是那做梦的人。


我编程三日,
两耳不闻人声,
只有硬盘在歌唱。


编译程序在运行,
像一条湍急的河流,
我静静地等侯。


为何要用LISP?
COBOL 语言我不懂,
所以我用LISP。


编程一整夜,
透过窗户,照到屏幕上,
初升的太阳。


硬件和软件,
我们是你们的主人和奴隶,
我们的生活是程序。


你能听见吗,
上程序的声音?
答案是NUL。


电子邮件说,
项目已取消,
清理文档时,我哭了。


计算中心空空荡荡,
静静的只有风扇在嗡鸣。
我走过一排排的CPU,
磁通量刺痛了我的皮肤。
我打开一扇门,又冷又硬,
看见指示灯在控制板上跳动。
一台没有灵魂的机器,人们说,
但它的灵魂是同事们的汗水,
在它里面有我们多年的生命,
失望,友谊,悲伤,欢乐,
算法成功时的狂喜,
和无数个徒劳无获的长夜。
我听见了叹息和欢笑的回声,
在这间黑洞洞的办公室里,
终端机闪耀着光芒,就像星星一样。

《The Tao Of Programming》——编程之道相关推荐

  1. The Tao Of Programming —— 编程之道

    说明: 本文是<<编程之道>> <<编程之禅>><<计算机时代的寓言>>其中的一册, 由小赵翻译整理, 另外, 这三册书的完整电 ...

  2. 编程之道:去如黄鹤来如晨风

    编程之道 The Silent Void Book One Thus spake the master programmer: 编程大师如是说: "When you have learned ...

  3. Python灰帽子——黑客与逆向工程师的Python编程之道pdf百度云

    Python灰帽子--黑客与逆向工程师的Python编程之道 内容简介 <Python灰帽子:黑客与逆向工程师的Python编程之道>是由知名安全机构Immunity Inc的资深黑帽Ju ...

  4. 编程之道The Tao Of Programming摘录

    昨天在网上看到<The Tao Of Programming>惊叹于作者的幽默感和对程序的精确把握.(小赵翻译的还是不错的) The Tao gave birth to machine l ...

  5. Python灰帽子:黑客与逆向工程师的Python编程之道

    掌握职业黑客的Python工具箱 <Python灰帽子:黑客与逆向工程师的Python编程之道> 基本信息 原书名: Gray Hat Python: Python Programming ...

  6. Python灰帽子——黑客与逆向工程师的Python编程之道

    Python灰帽子--黑客与逆向工程师的Python编程之道 下载地址 https://pan.baidu.com/s/12hlf8ZAXBbGwcael_Ecmrg 扫码下面二维码关注公众号回复 1 ...

  7. Python灰帽子_黑客与逆向工程师的Python编程之道

    收藏自用 链接:Python灰帽子_黑客与逆向工程师的Python编程之道

  8. Python黑帽子-黑客与渗透测试编程之道

    Python黑帽子-黑客与渗透测试编程之道 时间:2018年4月28日 前言 本文参考了两篇资料,优化补全了代码内容 giantbranch 的 Python黑帽子–黑客与渗透测试编程之道 意闲 的 ...

  9. python渗透编程之道

    1.了解python 2.网络知识 3.渗透知识 第三章 网络:原始套接字和流量嗅探 1.Windows和Linux上的包嗅探 # _*_coding:utf-8_*_ import socket i ...

最新文章

  1. AR SDK引擎技术选型和使用实现方案
  2. 73. Leetcode 230. 二叉搜索树中第K小的元素 (二叉搜索树-中序遍历类)
  3. SQLSever 存储过程创建
  4. 显示catispecobject_CATIA CAA 二次开发 详细教程
  5. CMFCRibbonStatusBar中添加图片按钮
  6. eclipse 插件打包发布
  7. 1 io口 stm32_从STM32分享各种硬件以及总线之GPIO简介
  8. Flink – WindowedStream
  9. Oracle,Mysql,Sqlserver数据库连接串(总爱忘,留着备用)
  10. 贝叶斯定理决策规则及Bayes思想总结
  11. 物流前沿理论与方法1
  12. 清华钱颖一:什么造就了硅谷奇迹?这7个因素不可忽视
  13. 雨林木风 Ylmf Linux Y1.5(Ubuntu 9.10)发行版正式发布
  14. macOS禁用指定应用联网的方法
  15. 上网代理设置会被自动清空_代理服务器上网(代理服务器老是自动打开)
  16. 文献阅读-10X单细胞揭示肿瘤浸润性T细胞的泛癌单细胞图谱
  17. Python中next()函数、iter()以及next(iter())函数的用法详解
  18. html2canvas微信头像后,微信小程序使用canvas在真机上不显示用户头像问题(不显示网络图片)...
  19. 斯坦福博士李纪为成立 AI 金融公司香侬科技,获红杉中国数千万天使投资
  20. 电子与通信工程专业毕设选题推荐

热门文章

  1. CREO工程图设计 2D出图 图纸设计视频教程
  2. 信息安全技术 云计算安全参考架构
  3. 113资讯网(www.113p.cn)评测:护卫神·主机大师 (Linux版)
  4. bzoj4004[JLOI2015]装备购买
  5. 声网 java app视频录制_怎么录制视频中的声音?迅捷录音软件还能这么用!
  6. 移动计算机类岗位综合知识测评,【浙江移动产品运营面试】一开始是笔试,普通的行测题+移动知识+性格测试。-看准网...
  7. 升级至win10 最新版本10.0.17134,远程桌面连接Window Server时报错信息如下
  8. + 实例演练ASP+XML编程(二)
  9. 基于javaweb的图书管理系统
  10. FPGA学习altera 系列 第十七篇 自动售货机设计