CC ++ thinks C ++ father interviews [God's joke?]

zhaozj2021-02-08  258

Father thought of C Interview of C / C is: Anonymous finishing translation: pigprince --------------------------------- ------------------------------------- New Year's Day in 1998, Bjarne Stroustrup (C Father) Interview with IEEE "Computer" magazine reporter. The editor is natural to think that he will make a historic review for the use of his created language in the past seven years. In this interview, the reporter has got a more valuable news, but the final editor decided to make the entire IT industry, this manuscript could not be published, but it was like other cut news, often a passport. This piece of interview is completely copy, no editor, delete or do anything, and has not been released, 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 a few years ago, and now you have something to look back now? Stroustrup: In fact, I have been considering this in these days before you arrive, do you remember that almost all people are writing a C program? Trouble is that these people are very good, and those universities are also working hard to teach C programming technology. It is indeed very success - I have to specifically point out the word "success" - 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: At the beginning, these people simply took high wages like half of God and enjoy the same treatment as the nobles. Reporter: Hey, how many days, is it? Stroustrup: Of course. But what happened, what happened? IBM thinks that this is uncomfortable, investing in millions of training programmers, until the programmer can pay a lot of money. Reporter: This is why I have removed it at the time, and the salary drove to people in a year. It is said that it is better than programmers. Stroustrup: right! At that time, the same thing happened to the C programmer. Reporter: I understand this, but you have to say ... Stroustrup: One day, I am sitting in the office, I want to save this matter. I want to know if there is a particularly complicated and unlocked language, no one can get the programmer to get the market's quit of the market? I used something I learned from X10, hey, it is X-Windows, it is a dead graphics system, can only run in the machines of those Sun 3/60, ha! It has all the features I want: a complicated syntax, a mixed function description, and a camouflage OO structure, even if it is now, no one is willing to use those things, if you don't want to go crazy, Motif is the only one solution. Reporter: Are you joking? Stroustrup: No, in fact there is another problem, UNIX is written with C, that is, any C programmer can become a developer of the system program. Remember that a large host system application developers usually earn more? Reporter: You must know that I am doing this at the time. Stroustrup: Ok, so this new language must be separated from UNIX by hiding all system calls, which can make those who know DOS can also live very well.

Reporter: I don't believe in this ... Stroustrup: and now have a long time, I believe that there are many people have pointed out that C is a waste of time, I want to say, this process is better than me. It's too much to imagine. 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. Anyone should have a long brain that should understand that the object programming is ridiculous and is not logical, and the efficiency is low. Reporter: What? Stroustrup: Code again, when did you hear the company reused his code? Reporter: In fact, there is no, but ... stroustrup: then I remind you that there are many examples in the early days. Oh, there is an Oregon company called Menter Graphics. I think they should have a cold. I have written all the code over 90 years or in 91 years. I'm sorry, I really can't think of the exact time. I have seen that everyone should learn from this incident. Reporter: Does anyone really absorb lessons? Stroustrup: Nothing, and many companies have made the same mistake, and explain to their shareholders say that the loss of the $ 300 million 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: maybe, executive file is so big, on a 128M memory HP workstation is just 5 minutes, then run the same time as the worms climbed. In fact, I found this shortcomings in the first worship. The strange thing is that no one cares about this, Sun and HP seem to do just to buy the powerful functions, not what procedures in it. At AT &., I compiled a "Hello World" program, which is difficult to confuse, 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 , what you get will not be less than 0.5m, and there are also some examples in various countries, such as the disaster occurred in British Telecom. , But fortunately, they will abandon the original plans, and they will start, they are lucky than Australian Telecom, now I heard that Siemens is in the "Dinosaurs", they are currently more worried. Accelerate the expensive high-speed hardware you want to use, do you really think 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 ? Let me tell you what happen: First, I will join enough defects to let those slightly insignificant modules, let the work overload, in the stage of engineering, 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 C tutorial. Similarly to perform different objects in the same module means that there are some things that are completely different in each module. You can integrate them together when you have a hundred such modules that are different from each other.

Secondly, I will talk about the so-called data hidden, God, when I heard that there is a group of objects that have achieved synergistic communication, I really can't help! I see that the word "collaboration" in the OO method can accumulate the ribs of the project manager. Reporter: I have to say it is terrible! You also say 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 develop into this. Anyway, I am basically successful. C isn't there? And programmers can still earn high salary - especially those who have to maintain these dead " " things. You should understand if you go to maintain a C module developed by you. Reporter: How can this? Stroustrup: Are you confused? Remember TypedEf? Reporter: Oh, of course. Stroustrup: I know that the change in the header file 'roofraised' is a double precision number for how long? Imagine to find the typedefs ... ... Reporter: So why have you been succeeded? Stroustrup: How long does it take to remember the general C program project? Generally 6 months. This is not enough for a programmer who wants a wife to support his wife. If it is the same project, how do you use C ? I tell you: I have to finish it for a year! Is this not good? Is a small programming language selection decision, the language programmer will not be easily laid off? And those universities have not teamed C, now is the shortage of C programmers. Especially for programmers who are familiar with UNIX. After using so many years of "New", it has always been worried about the problem of returning value. How many programmers know using "malloc"? In fact, most C programmers abandoned the return value, no matter what kind of result, even returned "-1", in fact, there is nothing of 'Throw', 'Catch', 'Try', at least You should know that there is an error. 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? After three system functions are performed, it is necessary to determine that all things can be inherited. If there is still nothing to say, it is still wrong, but who has heard that storage leakage in C? Now you can find it in the industry's larger products! There are a lot of companies to give up, and the project is put into out. They know that the last possibility of using the sieve sand to finish the memory station, they don't want to suffer! Reporter: There are also some tools to come ... Stroustrup: Most anti-leaks tools are not written with 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 will recognize that C is simply a disaster with C . If you haven't realized this, it is alive! A period of time I advised Dennis Ritchie to override UNIX with C .

转载请注明原文地址:https://www.9cbs.com/read-1486.html

New Post(0)