Life is short 人生苦短

 

Life is short -"Ruby Cookbook" by Lucas Carlson and Leonard Richardson
This is a book of recipes:solutions to common problems,copy-and-paste code snippets,explanations,examples,and short tutorials.
This book is meant to save your time.Time,as they say,is money,but a span of time is also a piece of your life.Our lives are better spent creating new things than fighting our own errors,or trying to solve problems that have already been solved.We present this book in the hope that the time it saves,distributed across all its readers,will greatly outweight the time we spent creating it.

The Ruby programming language is itself a wonderful time_saving tool.It makes you more productive than other programming languages because you spend more time making the computer do what you want,and less wrestling with the language.But there are many ways for a Ruby Programmer to spend time without accomplishing anything,and we've encountered them all:
Time spent writing Ruby implementations of common algorithms.
Time spent debugging Ruby implementations of common algorithms.
Time spent discovering and working around Ruby-specific pitfalls.
Time spent on repetitive tasks(including repetitive programming tasks!) that could be automated.
Time spent duplicating work that someone else has already made publicly available.
Time spent searching for a library that dose X.
Time spent evaluating and deciding between the many libraries that do X.
Time spent learning how to use a library because of poor or outdated documentation.
Time lost staying away from a useful technology because it seems intimidating.
We,and the many contributors to this book ,recall vividly our own wasted hours and days.We've distilled our experiences into this book so that you don't waste you timeor at least so you enjoyable waste it on more interesting problems.

 <!---------------------华丽的分割线----------------------------------->

    这是一本关于秘诀的书籍,其中包括:对一般问题的解决方案、复制和粘贴代码段、解释、示例和简短指南。

    本书意欲为读者节省时间。人们总是说,时间就是金钱,但时间也是个人生命的构成。我们的生命应当花在创造新事物上,而不是用于抗击我们自己的错误或者解决那些已经解决过的问题。我们提供此书的愿望是:它的所有读者所节省的时间远远超过我们编写它所花掉的时间。

Ruby编程语言本身是一种非常节省时间的工具,与其他编程语言相比,它能产生更高的生产率,因为用户会花费更多的时间让计算机做自己想做的事情,而思考语言本身的时间则较少。但是,对于一名Ruby 程序员,可能有很多情况即使没做任何事情也花费了很多时间,下面是我们遇到过的各个方面:

          将时间花在编写通用算法的Ruby 实现上。

          将时间花在调试通用算法的Ruby 实现上。

          将时间花在发现和修正Ruby 特有的缺陷上。

          将时间花在应当自动执行的重复性任务上(包括重复性编程任务!)。

          将时间花在重复其他人已经公开实现过的工作上。

          将时间花在搜索运行X 的库上。

          将时间花在对运行X 的多个库进行评估和确定上。

          将时间花在由于文档的匮乏或过时而学习如何使用库上。

          将时间浪费在由于惧怕而不敢接触有用的技术上。

    我们以及本书的许多投稿人还清楚地记得我们自己浪费的那些时日。我们将自己的经历提炼进本书中,从而让读者不再浪费自己的时间——或者至少让读者愉快地将时间花在其他更有趣的问题上。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值