ImageVerifierCode 换一换
格式:DOCX , 页数:18 ,大小:44.74KB ,
资源ID:2524532      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-2524532.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(编程语录.docx)为本站会员(b****1)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

编程语录.docx

1、编程语录下面是“Neo”和“陈皓”的翻译,我们的翻译水平有限,所以,我们提供了中英文对照,有不当之处,还请各位指正。A good programmer is someone who looks both ways before crossing a one-way street. Doug Linder, systems administrator好的程序员这样一类人,这类人在横穿一条单行道前都要先看一下路两边。 Doug Linder, 系统管理员A most important, but also most elusive, aspect of any tool is its influe

2、nce on the habits of those who train themselves in its use. If the tool is a programming language this influence is, whether we like it or not, an influence on our thinking habits. Edsger Dijkstra, computer scientist关于工具,一个最重要的,也是最不易察觉的方面是,工具对使用此工具的人的习惯的潜移默化的影响。如果这个工具是一门程序语言,不管我们是否喜欢它,它都会影响我们的思维惯式。

3、Edsger Dijkstra, 计算机科学家,著名的“程序=数据结构+算法”的提出者。Being abstract is something profoundly different from being vague The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise. Edsger Dijkstra抽象和模糊完全地不同,抽象的目的并不是把事情变模糊,而去创建一个新的语义层,在那里是绝对精确的描述。 Ed

4、sger DijkstraBesides a mathematical inclination, an exceptionally good mastery of ones native tongue is the most vital asset of a competent programmer. Edsger Dijkstra除了数学爱好,对于一个有能力的程序员来说,出色地掌握自己的母语是最宝贵的财富。 Edsger DijkstraC makes it easy to shoot yourself in the foot; C+ makes it harder, but when yo

5、u do, it blows away your whole leg. Bjarne Stroustrup, developer of the C+ programming languageC很容易使你搬起石头砸自己的脚,而C+把这事变得更难,但是如果一定要这么做,那么你的整条腿都会被炸飞 -Bjarne Stroustrup, C+语言的发明者Commentary: most debugging problems are fixed easily; identifying the location of the problem is hard. unknown修复bug很容易,但是定位bug

6、却很困难 匿名Considering the current sad state of our computer programs, software development is clearly still a black art, and cannot yet be called an engineering discipline. Bill Clinton, former President of the United States看看当前计算机程序糟糕的事态,软件开发明显一直是一门妖术,其仍然不能被称为一个工程学。 比尔.克林顿 美国前总统For a long time it puzz

7、led me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a p

8、erfect match. Bill Bryson, author, from Notes from a Big Country长期以来,有个事一直困扰着我,那就是越是昂贵的,越是前沿的,就越可能是没用的。然后,困扰我的另一个事是,计算机是一个死的机器,却可以不可思议地去完成那些巧妙的事情,而计算机程序员是那么聪明人却在做着不可思议的愚蠢的事情,简而言之,他们真是天生的一对。 Bill Bryson旅游文学作家 Big Country中的笔记Given enough eyeballs, all bugs are shallow (e.g., given a large enough beta-

9、tester and co-developer base, almost every problem will be characterized quickly and the fix obvious to someone). Eric S. Raymond, programmer and advocate of open source software, from The Cathedral and the Bazaar足够多的眼睛,就可让所有问题浮现(比如:只要给于足够多的beta测试者和开发人员一起工作,那么,几所所有的问题都会很快的出现,而修正也会是显而易见的)Good code is

10、 its own best documentation. As youre about to add a comment, ask yourself, How can I improve the code so that this comment isnt needed? Improve the code and then document it to make it even clearer. Steve McConnell, software engineer and author, from Code Complete好的代码自己本身就是最好的文档。当你打算加注释的时候,问问自己我如何才

11、能把我的代码改善到不需增加注释?重构自己的代码,然后使文档让其更清楚。 Steve McConnell代码大全的作者Hey! It compiles! Ship it! unknown嘿,编译通过了!出货!匿名Inside every well-written large program is a well-written small program. Charles Antony Richard Hoare, computer scientist在每个编写精良的大程序里面都是一个编写精良的小程序。 Charles Antony Richard Hoare,计算机科学家It should be

12、 noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter. Nathaniel S. Borenstein, computer scientist需要注意的是,没有哪个经过规范培

13、训的工程师会赞成写一个DestoryBaghdad(摧毁巴克达)的函数。最基本的职业规范会告诉他们应该去写一个叫DestoryCity的函数,然后把“Baghdad”(巴克达)当成这个函数的参数。Nathaniel S. Borenstein,计算机科学家Managing programmers is like herding cats. unknown管理程序员就如同养一群猫一样 匿名Measuring programming progress by lines of code is like measuring aircraft building progress by weight. B

14、ill Gates, co-founder of Microsoft Corporation用代码行数来衡量编程的进度,就如同用航空器零件的重量来衡量航空飞机的制造进度一样。Bill Gates,微软创始人More good code has been written in languages denounced as bad than in languages proclaimed wonderful much more. Bjarne Stroustrup, from The Design and Evolution of C+好的代码都都在的批评声中写成的,而差的则是在表杨声中写成的。B

15、jarne Stroustrup, 摘自The Design and Evolution of C+Programs must be written for people to read, and only incidentally for machines to execute. Harold Abelson and Gerald Jay Sussman, computer scientists and authors, from The Structure and Interpretation of Computer Programs代码应该是写给其他人来读的,而能让机器运行的仅仅是附带着

16、的。Harold Abelson 与 Gerald Jay Sussman, 计算机科学家和作家,摘自The Structure and Interpretation of Computer ProgramsReal programmers dont comment their code. If it was hard to write, it should be hard to understand. unknown真正程序员从来不写代码的注释,如果代码非常难写,那么同样代码的注释也会非常难懂 匿名Simplicity is prerequisite for reliability. Eds

17、ger Dijkstra简单是可靠的前提条件 迪杰斯特拉The C programming language a language which combines the flexibility of assembly language with the power of assembly language. unknownC语言 一门同时具有了汇编语言灵活性和汇编语言强大能力的语言。 匿名The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the c

18、ode accounts for the other 90% of the development time. Tom Cargill, object-oriented programming expert at Bell Labs开始的90%的代码用了90%的开发时间,而剩下的最后的10%的代码会需要另外90%的开发时间。 Tom Cargill,面向对象编程专家,贝尔实验室The important point is that the cost of adding a feature isnt just the time it takes to code it. The cost also

19、 includes the addition of an obstacle to future expansion. Sure, any given feature list can be implemented, given enough coding time. But in addition to coming out late, you will usually wind up with a codebase that is so fragile that new ideas that should be dead-simple wind up taking longer and lo

20、nger to work into the tangled existing web. The trick is to pick the features that dont fight each other. John Carmack, computer game programmer增加一个功能特性的成本并不单单是为这些功能编码所花费时间的成本,还这个成本应该包括特性扩展的障碍成本。当然,任何的功能清单都可以被实现,只需要有足够的时间。但是除些之外,你应该对你的代码库的脆弱性感到紧张,而那些新的想法应该足够的简单,而不是去花费更多更多的时间去纠缠于现有的蜘蛛网。这里的决窃是挑选那些不会和别

21、人冲突的的功能。The key to performance is elegance, not battalions of special cases. The terrible temptation to tweak should be resisted unless the payoff is really noticeable. Jon Bently and M. Douglas McIlroy, both computer scientists at Bell Labs表现的关键是精美和典雅的,并不是使用大量的特殊案例。对于任何调整的冲动都应该是被限制的,除非其回报真的是值得注意的。

22、Jon Bently and M. Douglas McIlroy, 二者都是贝尔试验实的计算机科学家The last good thing written in C was Franz Schuberts Symphony Number 9. Erwin Dieterich, programmer最后一件用C做的好作品就是弗朗茨.舒伯特的C大调第9交响曲 Erwin Dieterich, programmer程序员The problem with using C+ is that theres already a strong tendency in the language to requ

23、ire you to know everything before you can do anything. Larry Wall, developer of the Perl language使用C+最大的问题是.在C+语言里,存在这一种很强的趋势,就是如果你不明白C+语言的细节,你就无法做好任何事情。 Larry Wall, developer of the Perl languageThe sooner you start to code, the longer the program will take. Roy Carlson, University of Wisconsin你越早开

24、始都手编码,你所花费来编程的时间就越长 Roy Carlson, University of WisconsinThe value of a prototype is in the education it gives you, not in the code itself. Alan Cooper, software author, from The Inmates are Running the Asylum原型的价值在于他给你的教训,而不是代码自身 Alan Cooper, software author, from The Inmates are Running the AsylumT

25、here are only two kinds of programming languages: those people always bitch about and those nobody uses. Bjarne Stroustrup世界上只有两类编程语言:人们都抱怨的语言和从来没有人使用的语言 Bjarne StroustrupThere are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. A

26、nd the other way is to make it so complicated that there are no obvious deficiencies. Charles Antony Richard Hoare世界上有两个设计软件的方法,一种方法是设计的尽量简单,以至于明显的没有什么缺陷,另外一种方式是使他尽量的复杂,以至于其缺陷不那么明显。Ugly programs are like ugly suspension bridges: theyre much more liable to collapse than pretty ones, because the way h

27、umans (especially engineer-humans) perceive beauty is intimately related to our ability to process and understand complexity. A language that makes it hard to write elegant code makes it hard to write good code. Eric S. Raymond丑陋的程序就像一座丑陋的吊桥:他们相比漂亮的良好的吊桥起来,更有可能会坍塌,这是因为人类(尤其是工程师)感知漂亮的东西是和我们处理和理解复杂问题的

28、能力相关的。所以,一个程序语言如果很难以优雅地方式编程,那么其就很难写出好的代码。Weeks of programming can save you hours of planning. unknown多做几周的编程可以节省你做计划的时间 匿名 (意思为,只有实践过了,你才更容易做计划,没有实践过,做起计划来将会很头痛)When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot

29、speak English. unknown当程序语言被设计成允许程序以很简单的英语来编程的时候,人们将会发现编写程序的程序员都来自不会说英语的地方。 匿名(全文完,翻译水平有限,如果有误,还请批评指正!)22条经典的编程引言编辑本段回目录下面的这些经典的引言来自英文,也许有些我翻译的是不很好,所以,我提供了中英对照,如果有问题,请大家指正。过早的优化是万恶之源。Premature optimization is the root of all evil!- Donald Knuth在水里行走和以一个需求规格进行软件开发,有一点是相同的,那就是如果水或需求都被冻住不了,那么行走和软件开发都会变

30、得容易。Walking on water and developing software from a specification are easy if both are frozen- Edward V BerardHofstadter 定理:“一件事情总是会花费比你预期更多的时间,就算是你已经考虑过本条Hofstadter 定理”。It always takes longer than you expect, even when you take into account Hofstadters Law.- Hofstadters Law有些遇到问题的人总是会说“我知道,我会使用正则表达

31、式”,那么,你现在有两个问题了。(意思是:你本想用正则表达式来解决你已有问题,但实际上你又引入了“正则表达式”的一个新问题)Some people, when confronted with a problem, think “I know, Ill use regular expressions.” Now they have two problems- Jamie Zawinski调试程序的难度是写代码的两倍。因此,只要你的代码写的尽可能的清楚,那么你在调试代码时就不需要那么地有技巧。Debugging is twice as hard as writing the code in the

32、 first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.- Brian Kernighan用代码行来衡量开发进度,无异于用重量来衡量制造飞机的进度。Measuring programming progress by lines of code is like measuring aircraft building progress by weight.- Bill GatesPHP被一些不合格的业余人员造就成了一个小恶魔;而Perl则是被一些熟练的但不正当的专业人员造就成了一个超级大恶魔。PHP is a minor evi

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2