C father interview
In the New Year's Day in 1998, Bjarne Stroustrup (C Father) received an IEEE computer
Interview with the magazine reporter.
The editor is naturally thinking that he will face objects for the language he created in the past seven years.
Design to make a historic review.
In this interview, the reporter got a more valuable news, but finally edit decision
The entire IT industry, this manuscript cannot be published, but it is like other cuts that are cut off, often
People are well known.
This article is properly copied, there is no editor, delete or do any moistening
I have not released it, it may look like a common magazine article, but this is a truth.
You will find a place that is really fascinating ...
-------------------------------------------------- --------------------
Reporter: You have changed the face of the world's design world a few years ago, and now you have something to look back.
?
Stroustrup: In fact, I have been considering this matter before you arrive, you still remember a few
Are all people who write a C program? Trouble is that these people have written very well, and those big
Learning is also working hard C programming technology. It is indeed very successful - I have to point out "
Success "this word - because this significant C programmer's cultivation efficiency, this is the cause of the problem
.
Reporter: Is this a problem?
Stroustrup: Of course, do you remember when you write a program with a COBOL language?
Reporter: Oh, of course, I was the same.
Stroustrup: When at the beginning, these people simply like half of God to hold high wages, enjoy
The patriotic treatment is the same.
Reporter: Hey, how many days, is it?
Stroustrup: Of course. But what happened, what happened? IBM thinks so uncomfortable, invest hundreds
Wan Luo training programmers until the programmer can hire a lot of money.
Reporter: This is why I was withdrawn at the time, and the salary drove to people in the year.
More than programmers.
Stroustrup: right! At that time, the same thing happened to the C programmer.
Reporter: I understand this, but what you want is ...
Stroustrup: One day, I am thinking about how to save this matter in the office. I want to know
If there is a language that is particularly complex and difficult to learn, no one can engage in programmers.
Go to the quet of the market? I used something that I learned from X10, oh, it is X-windows, true
It is a dead graphics system that can only run in the machines of those SUN 3/60, ha! It has all
I want the characteristics: a complicated syntax, a mixed function description, and a camouflage OO structure, even
Is it now, no one is willing to use those things, if you don't want to go crazy, Motif is the only solution.
Decision.
Reporter: Are you joking?
Stroustrup: No, in fact there is another problem, UNIX is written with C, that is, any one
A C programmer can easily become the developer of the system program. Remember a large host system
Can the developer of the application usually earn more?
Reporter: You must know that I am doing this at the time.
Stroustrup: Ok, so this new language must be called by hidden all system calls and UNIX
Separate, this can make those who know that DOS can live very well. Reporter: I don't believe this ...
Stroustrup: And now time is still long enough, I believe that there are many people have pointed out C is right.
Time waste, I want to say, this process is much longer than I think.
Reporter: How do you do it?
Stroustrup: That is just a joke, I really didn't think people would be so serious about that book. any
As long as people have long, it should understand that the object programming is ridiculous and is not logical, and the efficiency is low.
under.
Reporter: What?
Stroustrup: Code again, when did you hear the company reused his code?
Reporter: In fact, there is never, but ...
Stroustrup: So I remind you that there are many examples in the early days. Oh, there is a family called menter G
Raphics Oregon, I think they should have a cold, actually in 90 years or in 1991
Some code has been renovated with C . Sorry, I really can't think of the exact time, I see everyone
This will learn from this incident.
Reporter: Does anyone really absorb lessons?
Stroustrup:
No, and there are still many companies to make the same mistake, and explain to their shareholders to say that the billions of foods are lost.
It is normal, they are doing this.
Reporter: Really? However, this can only prove that the OO method is able to work, isn't it? Stroustrup: also
Let's, the executive file is so big, on a HP workstation with 128M memory is just loaded into memory.
It is necessary to use the same operation like a caterpillar in a 5 minute time. In fact, I found it in the first worship.
This shortcomings, strange is that no one cares about this, sun and hp seem to only caregablely
The various stuffs don't care what procedure is running. I have compiled a "Hello when I was at AT & .t."
The World program is simply incredible, and the execution file is 2.1M.
Reporter: So big? Yes, it is the result of the compiler that starts at that time.
Stroustrup: This looks like this, if you don't believe, you can try it with the latest version of G , you have to
The thing will not be less than 0.5m, and there are also some examples in various countries recently, such as in Brit.
ISH Telecom's disaster, but fortunately, they will abandon the original plan, and re-open
Start, they are fortunate than Australian Telecom, now I heard that Siemens is also created.
Dinosaurs, they are currently increasingly worried about accelerating the expensive high-speed hardware to implement software.
Isn't you really think that those polymorphic inherits are a pleasure?
Reporter: Oh, C is indeed a reliable language!
Stroustrup: You really believe, right? Do you really sit down with C ? I
Let's tell you what happen: First, I will join enough defects to let those slightly insignificant modules
OK, let the work overload, during the stage of the project, you will find that almost all modules will have this defect
This is because people think that it should be done because it is written in the C tutorial. In the same
Similarly to perform different objects in the module means that there are some things that are completely unhappy in each module.
. You can integrate them together when you have a hundred such modules that are different from each other. Second, let me talk about the so-called data hidden, God, when I heard that there is a group of objects to achieve
With communication, I really can't help you! I see that the word "collaboration" in the OO method can take the project
The ribs are tied.
Reporter: I have to say it is terrible! You also said that this is used to improve the wages of programmers, this is too embarrassing
!
Stroustrup: 龌龊? No, anyone has the right to choose. I don't want to make things happen.
Exhibition into this. Anyway, I am basically successful. C isn't there?
And the programmer can still earn high wages - especially those who want to maintain these dead " "
Those programmers in things. You should understand if you go to maintain a C module developed by you.
can.
Reporter: How can this?
Stroustrup: Are you confused? Remember TypedEf?
Reporter: Oh, of course.
Stroustrup: I know that the variable such as 'Roofraiad' is a double precision number in the header file.
How long does it take? Imagine find those typedefs in all classes in a project
...
...
Reporter: So why do you have succeeded?
Stroustrup: How long does it take to remember the general C program project? Generally 6 months. This for one
It is not enough programmers who want to support their children. If it is the same project, but use C to develop, will
how is it? I tell you: I have to finish it for a year! Is this not good? Is a small programming language
The decision to choose, the language programmer will not be easily laid off? And those universities have not been
There is a teach C, it is now a shortage of programmakers. Especially for programmers who are familiar with UNIX. In use
After so many years of "new", and have always been worried about the problem of return value. Have more
Less programmer knows using "malloc"? In fact, most C programmers discard the return value, no matter
What kind of results, even returned "-1", actually there is no more 'throw', 'catch', 'TRY
'What you have, at least you should know that there is a mistake.
Reporter: But does inheritance does not save a lot of time?
Stroustrup: Yes? Do you pay attention to the difference between the C project plan and the C project plan? In progress
After three system functions, you have to determine that all things can be inherited, if not,
It is wrong, but who has heard of storage leakage in C? Now you can live in the industry
Discover in the product! There are a lot of companies have to give up, and the project is put out, they know
The Tao finally used the sieve sand to use the memory station, they didn't want to suffer!
Reporter: There are also some tools to ...
Stroustrup: Most anti-leak tools are not written in C .
Reporter: If you publish these things, we may not be able to stand in this industry. Do you know?
Stroustrup: I don't believe, just like what I said, now C is already struggling in dying. Any company
As long as you are awake, you will recognize that the project with C is a disaster. If you haven't realized this, then
It's alive! A period of time I advised Dennis Ritchie to override UNIX with C . Reporter:? God! What did he say?
Stroustrup: I have to admit his insight, I think he and Brian are clear at a very early.
White intentions, but never said, he said if I am willing, he can help me with C .
DOS.
Reporter: So you wrote?
Stroustrup: In fact, I wrote, I can give you a demo after I finish, I am in a machine room.
The 4 CPUs SPARC 20 do, run special fast, and only 70m hard disk space.
Reporter: Is there a version of the for PC?
Stroustrup: Now you are joking, haven't you seen Windows 95? I think it is me.
One of the merits,
Reporter: I always think about Unix , or some people are trying to do this.
Stroustrup: That's because they haven't seen this interview.
Reporter: Sorry, but I don't have anything to issue these things.
Stroustrup: But this is a century story, I just want my programmer partner to remember me for them.
What did you do, do you know how much can the C programmers in these days?
Reporter: I heard that a top C programmer can earn 70 ~ 80 cents for an hour.
Stroustrup: I know! And I bet him must be so much! ! Single step tracking I put it in C
The gotcha inside is not easy. All features that use C in the project even
Experienced programmers will also be confused. In fact, I feel very uncomfortable, although this special
Sex is done for my original intention, I almost like this language.
Reporter: What do you mean saying that you didn't like it?
Stroustrup: I am awkward! Don't you agree? Is it very cumbersome? But when the book
The source is constantly ... I think you can understand these.
Reporter: Wait a minute, regard to the definition of the parameters, please have to answer, you really improve C's pointer.
Stroustrup: Oh, I always want to know this. I thought I did it at first, but one day I
This issue discussed with a programmer who just started learning C . He said: "He never known his
Whether the variable is referenced, so I am still using a pointer, that asterisk is always reminding me. "
Reporter: OK, usually I generally said: "Thank you very much", but now
It is still not enough to use it here.
Stroustrup: I will promise me to publish.
Reporter: Ok, I will inform you, but I already know what my editor will say.
Stroustrup: Who will believe it? Can you bring this recording to me?
Reporter: Yes.