22条经典的编程引言(英)

来源:互联网 发布:空间是什么 建站 编辑:程序博客网 时间:2024/06/05 05:10

1. Premature optimization is the root of all evil!

 

2. Walking on water and developing software from a specification are easy if both are frozen

 

3. It always takes longer than you expect, even when you take into account Hofstadter’s Law.

 

4. Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems

 

5. 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.

 

6. Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

 

7. PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil, perpetrated by skilled but perverted professionals.

 

8. On two occasions I have been asked, ‘Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?’ I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.”

 

9. Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

 

10. 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.

 

11. I don’t care if it works on your machine! We are not shipping your machine!

 

12. I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone.

 

13. A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila.

 

14. If debugging is the process of removing software bugs, then programming must be the process of putting them in.

 

15. It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration.

 

16. In theory, theory and practice are the same. In practice, they’re not.

 

17. Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.

 

18. Perl - The only language that looks the same before and after RSA encryption.

 

19. I love deadlines. I like the whooshing sound they make as they fly by.

 

20. Saying that Java is good because it works on all platforms is like saying anal sex is good because it works on all genders.

 

21. XML is like violence - if it doesn’t solve your problems, you are not using enough of it.

 

22. Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer.

原创粉丝点击