2016年07月14日 技术分享 评论 3 条 阅读 749 次

我收集了很多关于软件开发者的编程语录。这些语录和软件开发维护、调试、软件 bug、软件设计和文档、代码质量、测试和管理等相关。下面这 59 条编程语录虽然令人捧腹但也揭示了真相。只有真正的软件开发人员才能理解这些编程语录的价值。下面,就让我们开始吧……



1. A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)


2. Don’t worry if it doesn’t work right. If everything did, you’d be out of a job. (Mosher’s Law of Software Engineering)


3. The trouble with programmers is that you can never tell what a programmer is doing until it’s too late. (Seymour Cray)


4. Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris. (Larry Wall)


5. Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. (Martin Golding)


6. One man’s crappy software is another man’s full time job. (Jessica Gaston)


7. If builders built buildings the way programmers wrote programs, then the first woodpecker that came along wound destroy civilization. (Gerald Weinberg)

如果建筑工人用程序员写程序的方式建造建筑物,那么来的第一只啄木鸟(找 bug)就将摧毁文明。

8. The most likely way for the world to be destroyed, most experts agree, is by accident.  That’s where we come in; we’re computer professionals. We cause accidents. (Nathaniel Borenstein)


9. It’s a curious thing about our industry: not only do we not learn from our mistakes, we also don’t learn from our successes. (Keith  Braithwaite)


10. Once a new technology starts rolling, if you’re not part of the steamroller, you’re part of the road. (Stewart Brand)


11. If at first you don’t succeed, call it version 1.0 (unknown)

如果第一次你没有成功,那么称之为 1.0 版,继续加油。

12. All programmers are playwrights and all computers are lousy actors. (Anonymous Hack Actor)


13. The sooner you get behind in your work, the more time you have to catch up. (Anonymous Scheduler)


14. When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English. (Anonymous Linguist)


15. Why do we never have time to do it right, but always have time to do it over? (Anonymous)


16. Any fool can write code that a computer can understand. Good programmers write code that humans can understand.


17. Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else. (Eagleson’s law)



1. Measuring programming progress by lines of code is like measuring aircraft building progress by weight. (Bill Gates)


2. Programming is like sex. One mistake and you have to support it for the rest of your life. (Michael Sinz)


3. Walking on water and developing software from a specification are easy if both are frozen. (Edward V Berard)


4. The first 90 percent of the code accounts for the first 90 percent of the development time…The remaining 10 percent of the code accounts for the other 90 percent of the development time.(Tom Cargill)

开始 90% 的代码占开始 90% 的开发时间……剩下 10% 的代码还是占 90% 的开发时间。

5. Commenting your code is like cleaning your bathroom — you never want to do it, but it really does create a more pleasant experience for you and your guests. (Ryan Campbell)


6. Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)


7. The hardest part of design … is keeping features out. (Donald Norman)


8. In order to understand recursion, one must first understand recursion. (Anonymous)


9. There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)


10. The best thing about a boolean is even if you are wrong, you are only off by a bit. (Anonymous)


11. If Java had true garbage collection, most programs would delete themselves upon execution. (Robert Swell)

如果 Java 真的有垃圾收集,那么大多数程序会执行自我删除。

12. In theory, there is no difference between theory and practice. But, in practice, there is. (Jan L. A. van de Snepscheut)


13. Ready, fire, aim: the fast approach to software development. Ready, aim, aim, aim, aim: the slow approach to software development. (Anonymous)


14. Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science. (Anonymous)

编程就是 10% 的科学,20% 得的独创性,再加 70% 和这门科学的灵巧合作。

15. It is easier to measure something than to understand what you have measured. (Anonymous)


16. Benchmarks don’t lie, but liars do benchmarks. (Anonymous)


17. Better train people and risk they leave – than do nothing and risk they stay. (Anonymous)


18. The goal of Computer Science is to build something that will last at least until we’ve finished building it. (Anonymous)


19. Java is to JavaScript what Car is to Carpet.  (Chris Heilmann)

Java 之于 JavaScript 就像 car 之于 carpet(地毯)。后者看上去像是前者的衍生物,实则是完全不同的两个东西。

20. It’s not at all important to get it right the first time. It’s vitally important to get it right the last time. (Andrew Hunt and David Thomas)


21. Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. (Stan Kelly-Bootle)

数组的下标一定要从 0 或 1 开始吗?我认为,我采取的中间值 0.5 没有经过适当考虑就被驳回了。

22. Programs must be written for people to read, and only incidentally for machines to execute. (Abelson / Sussman)


23. Programming can be fun, so can cryptography; however they should not be combined. (Kreitzberg and Shneiderman)


24. Copy and paste is a design error.  (David Parnas)


25. Computers are good at following instructions, but not at reading your mind. (Donald Knuth)



1. Deleted code is debugged code. (Jeff Sickel)


2. If debugging is the process of removing software bugs, then programming must be the process of putting them in. (Edsger Dijkstra)

如果调试是消除软件 bug 的过程,那么编程就是产出 bug 的过程。

3. Debugging is twice as hard as writing the code in the first place.  Therefore, if you write the code as cleverly as possible, you are–by definition–not smart enough to debug it.


4. It’s hard enough to find an error in your code when you’re looking for it; it’s even harder when you’ve assumed your code is error-free. (Steve McConnel)

你的目的是找 bug 的时候,bug 已经很难找了;更不要说当你认为自己的代码中没有错误的时候。

软件 bug 语录

1. It’s not a bug – it’s an undocumented feature. (Anonymous)

这不是 bug——这是没有被证明的功能。

2. Without requirements or design, programming is the art of adding bugs to an empty text file. (Louis Srygley)

如果没有需求和设计,那么编程就是添加 bug 到空的文本文件的艺术。

3. Bad code isn’t bad, its just misunderstood. (Anonymous Code Behaviorist)


4. There are two ways to write error-free programs; only the third one works. (Alan J. Perlis)


5. Beware of bugs in the above code; I have only proved it correct, not tried it. (Donald Knuth)

小心上面代码中的 bug;我只证明了它是正确的,还没有尝试过。


1. Before software can be reusable it first has to be usable. (Ralph Johnson)


2. Software undergoes beta testing shortly before it’s released. Beta is Latin for “still doesn’t work”. (Anonymous)

软件在发布前要经过 beta 测试。beta 即拉丁语“仍然无法正常工作”的意思。

3. The best performance improvement is the transition from the nonworking state to the working state. (J. Osterhout)


4. The cheapest, fastest, and most reliable components are those that aren’t there. (Gordon Bell)


5. I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing. (Oktal)

我认为微软命名 .Net,它就不会在 Unix 目录列表显示出来。

6. Software and cathedrals are much the same – first we build them, then we pray. (Sam Redwine)


7. The software isn’t finished until the last user is dead. (Anonymous)


8. Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves. (Alan Kay)



3 条留言  访客:2 条  博主:1 条

  1. avatar 卢松松博客


  2. avatar 小C博客


    • avatar asp.net开发工程师



Copyright © 极品飞鸽 保留所有权利.   Theme  Ality 蜀ICP备14015766号-1