码迷,mamicode.com
首页 > 其他好文 > 详细

懒惰、急躁和傲慢

时间:2017-12-01 22:11:34      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:find   hid   book   程序   计算机   enc   make   避免   effort   

Perl语言的发明人Larry Wall说,好的程序员有3种美德: 懒惰、急躁和傲慢(Laziness, Impatience and hubris)。

技术分享图片
Laziness

The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful, and document what you wrote so you dont have to answer so many questions about it. Hence, the first great virtue of a programmer, Also hence, this book.
Laziness

懒惰:

是这样一种品质,它使得你花大力气去避免消耗过多的精力。它敦促你写出节省体力的程序,同时别人也能利用它们。为此你会写出完善的文档,以免别人问你太多问题。

技术分享图片
Impatience

The anger you feel when the computer is being lazy. This makes you write programs that dont just react to your needs, but actually anticipate them. Or at least pretend to. Hence, the second great virtue of a programmer.
Impatience

急躁:

是这样一种愤怒----当你发现计算机懒洋洋地不给出结果。于是你写出更优秀的代码,能尽快真正的解决问题。至少看上去是这样。

技术分享图片
Hubris

Excessive pride, the sort of thing Zeus zaps you for. Also the quality that makes you write (and maintain) programs that other people wont want to say bad things about. Hence, the third great virtue of a programmer.
Hubris

傲慢:

极度的自信,使你有信心写出(或维护)别人挑不出毛病的程序。

懒惰、急躁和傲慢

标签:find   hid   book   程序   计算机   enc   make   避免   effort   

原文地址:http://www.cnblogs.com/sesefadou/p/7944348.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!