首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

编程之道-Book Four - Coding

2013-10-02 
编程之道--Book Four - Coding摘自《编程之道》“也存在于个人计算机的 DOS 里吗?”The master coughed and sh

编程之道--Book Four - Coding

摘自《编程之道》

“也存在于个人计算机的 DOS 里吗?”

The master coughed and shifted his position slightly. "The lesson is overfor today," he said.

大师咳嗽了一声,稍微动了一下,说,“今天的课就到这里”。

4.4

Price Wang's programmer was coding software. His fingers danced upon thekeyboard. The program compiled without an error message, and the programran like a gentle wind.

###编程大师编写软件时,手指在键盘上快速飞舞。程序编译时没有一条错误信息,程序运行起来就象一阵微风吹过。

Excellent!" the Price exclaimed, "Your technique is faultless!"

太精彩了!你的技巧已经无可挑剔了。

"Technique?" said the programmer, turning from his terminal, "What Ifollow is the Tao -- beyond all technique. When I first began to programI would see before me the whole program in one mass. After three yearsI no longer saw this mass. Instead, I used subroutines. But now I seenothing. My whole being exists in a formless void. My senses are idle.My spirit, free to work without a plan, follows its own instinct. In short,my program writes itself. True, sometimes there are difficult problems.I see them coming, I slow down, I watch silently. Then I change a singleline of code and the difficulties vanish like puffs of idle smoke. I thencompile the program. I sit still and let the joy of the work fill my being.I close my eyes for a moment and then log off."

“技巧?”,大师转过身说,“我所遵循的是道--它超乎所有的技巧。当我开始编程时我看到的是整个一大块的程序,三年后我看到的是子过程。现在我什么也看不到了。我的整个存在是没有任何形式的虚无。我感觉很悠闲,总之,事实上是我的程序自己在写,有时我看到一些问题,我看到它们,就停下来静静地观察它们,然后我改变了一行代码,难题就象一阵轻烟一样化为乌有。然后我编译程序。坐在那里享受工作的喜悦。闭了一会眼睛然后退出系统。

Price Wang said, "Would that all of my programmers were as wise!"

“什么时候我的程序员才能都达到这样的境界!” 


热点排行