引用第10楼ltl于2011-07-26 16:29发表的 :
谁告诉你代码是给人看的……你见过那个程序员过几天还看得懂自己的代码的……
The important thing to realize in programming is programming is not just about writing a program that the computer understands. Programming is about writing programs that prople understand. I can't stress that enough. That's huge. That's what programming style is all about. It's what good software engineering is all about. Writing a program that just works, that someone else can't read and understand, is actually really terrible sofrware engineering. And I've seen software companies do this where some hotshot programmer comes along and they're like, "Oh, I'm a great programmer." And they go and write some program to do something, and it works the first time and then it breaks. And then they come along and they say, "Hey, we need to actually get that program to do somthing slightly different, or we need to upgrade it." And it's written in terms of the code so badly that they can't do anyting with it, and they throw it out completely, fire the programmer, and get a team of good software engineers to actually do it. I've actually seen that happed multiple times. Okay, so write programs for people to read, not just for computers to read. Both of them need to be able to read it, but it's far more important that a person reads it and understands it. That's the first software engineering principle to think about.
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |