`
isiqi
  • 浏览: 16539209 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

[转] 懒惰、急躁和傲慢 (Laziness, Impatience and hubris)

阅读更多

转自:http://www.ruanyifeng.com/blog/2006/05/laziness_impatience_and_hubris.html

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 don't have to answer so many questions about it. Hence, the first great virtue of a programmer, Also hence, this book.

懒惰:

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

Impatience

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

急躁:

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

Hubris

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

傲慢:

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

分享到:
评论

相关推荐

    Health_ Laziness 健康:懒惰.pdf

    标题和描述中提到的"Health_ Laziness 健康:懒惰.pdf"是一份讨论健康与懒惰关系的文档,可能包含关于懒惰对身体和生活的影响、懒惰的行为表现以及如何克服懒惰的建议等内容。虽然标签部分为空,但我们可以从部分...

    Perl 入门教程..

    - **语言设计的三大原则:懒惰、急躁与傲慢(Laziness, Impatience, and Hubris):** - 懒惰:意味着尽可能减少重复工作,提高效率。 - 急躁:意味着快速解决问题,不浪费时间。 - 傲慢:意味着有自信去改变现状...

    jgit-laziness:懒惰的 git 命令

    #jgit-懒惰懒惰的 git 命令##安装npm install -g jgit-laziness ##用法jgit commitjgit commit " commit message "# will add and commit# git add .# git commit -a -m "auto-commit" jgit pushjgit push " ...

    Learning Functional Data Structures and Algorithms

    Title: Learning Functional Data Structures and ... Streams, Laziness, and Algorithms Chapter 10. Being Lazy - Queues and Deques Chapter 11. Red-Black Trees Chapter 12. Binomial Heaps Chapter 13. Sorting

    The Haskell Road to Logic, Maths and Programming. Second Edition(英文第二版)

    Haskell is a marvelous demonstration tool for logic and maths because its functional character allows implementations to remain very close to the concepts that get implemented, while the laziness ...

    Functional C#[January 2017].pdf

    Chapter 1, Tasting Functional Style in C#, introduces the functional programming approach by discussing its concepts and the comparison between functional and imperative programming. We also try to ...

    ServunN00B懒惰峰会「ServunN00Bs Summit of Laziness」-crx插件

    IMDB搜索 高峰的巅峰导致了一个快捷菜单。增加更多的时间与新的搜索引擎和功能。 峰值懒惰成为一个右键快捷键。我会通过时间添加更多的搜索引擎和功能。 支持语言:suomi

    主题班会课件:珍惜时间好好学习中队班会.ppt

    * Procrastination and laziness can lead to a waste of time and opportunities. * Making a schedule and prioritizing tasks can help individuals manage their time more effectively. 四、学习的重要性 * ...

    The Implementation of Functional Programming Languages

    full laziness and SK combinators., Finally, the third part describes the G-machine, a sophisticated implementation of graph reduction, which provides a dramatic increase in performance over the ...

    Clojure.for.Finance.1785289284

    Use Clojure's basic language tools such as laziness, immutability, and firstclass functions to solve real-world problems Explore mathematical derivatives to generate different wave forms Get ...

    英文原版-Functional PHP 1st Edition

    Key Features Greatly improve your code quality, testability, and readability using modern functional programming techniques Get a solid foundation in functional programming techniques and ...

    Functional PHP

    Utilize performance optimization techniques such as laziness, memorization, and parallelization Build the business logic of applications with the functional paradigm Test functional code and know how ...

    Real-world Functional Programming with examples in c# and f#

    该书籍《Real-world Functional Programming with examples in c# and f#》是一本入门级教程,以C#和F#为例,介绍了函数式编程的基本概念和实践。 **不变性(Immutability)**是函数式编程的核心原则之一。在函数式...

    jquery-laziness:图像延迟加载的 jQuery 插件

    懒惰 图像延迟加载的 jQuery 插件。 例子: :: $(document).ready(function() { $(document).laziness({ selector: 'img[data-src]', // image selector on selected container attribute: 'data-src', // ...

    Collections源码java-java11-streams-laziness-needs-immutable-collections:使

    java11-streams-laziness-needs-immutable-collections 使用可变集合作为流源的示例可能会在处理过程中引起认知中断。 参考: 前言 流在几个方面与集合有所不同: 没有存储空间。 流不是存储元素的数据结构。 而是...

    Mastering Lambdas- Java Programming in a Multicore World

    This laziness helps reduce memory consumption by only computing values as needed. - **Optimization**: The Stream API automatically optimizes certain operations based on the context, such as short-...

    ServunN00Bs Summit of Laziness-crx插件

    语言:suomi IMDB搜索 Huippuunsa kiivennyt laiskuus sai aikaan pikavalikon。 更多信息,请访问:Lisäilenajanmyötäuusia ...峰值懒惰成为右键单击的快捷方式。 随着时间的推移,我将添加更多的搜索引擎和功能。

    房地产培训 - 越过你的地狱之门.pdf

    销售人员需要警惕职业销售的“地狱之门”,这包括以下四个方面:习惯(Habits)、自负(Ego)、知识不足(Lack of Knowledge)、懒惰(Laziness)。销售人员不应该陷入固定的行为模式,而应不断更新销售策略和技术,...

    3分钟英语演讲稿【双语版】.docx

    Because not every moment can be relived, we must ensure that we do not miss our chance because of temporary laziness. In our lives, there are specific missions for each stage. For us students, the ...

Global site tag (gtag.js) - Google Analytics