C ++ is a bad language. The father of Linux shot C ++.

Source: Internet
Author: User

Linux father Linus Torvalds dedicated Version Control Software git for Linux kernel development has aroused widespread attention in the industry. Yesterday, a Dmitry kakurin dude found that he was using pure C instead of C ++ after checking the source code. He bluntly said, "Don't talk about portability, this is an asshole (BS, bullshit ). "(In addition, He also criticized git for its brute-force direct text operations, which were both tedious and error-prone, and it was difficult to keep up with high-level code logic .)

This BS caused a strong reaction from Torvalds. He used "* you * are full of bullshit." (you are full of BITs) as his own counterargument. Next, he first turned to the rare fireproofing of C ++:

"C ++ is a bad (horrible) language. In addition, the use of a large number of low-standard programmers makes the situation worse, so that it is easy to generate total and utter crap ). To be honest, C is chosen to kick the C ++ programmer out ....... I have come to the conclusion that any programmer who prefers to use C ++ instead of C development projects may be the ones I want to kick out, so that they won't mess up my projects. C ++ can lead to very bad design choices. Your C ++ programmers always use the 'beautiful' library features of the language as soon as they come up, such as STL, boost, and other complete garbage, this may be helpful to your program, but it may cause:

-- Endless suffering when the library cannot work (don't talk to me about STL, especially boost, which is stable and portable. It's all nonsense and not funny at all)

-- Inefficient abstract programming models. Maybe two years later, you will notice that some of the abstract effects are not very good, but all the code is dependent on the 'beautiful' object model designed around it, if the application is not overwritten, it cannot be corrected.

That is to say, the only way to use excellent, efficient, system-level, and portable C ++ is to use all the features of C. Project restrictions only use C, which means that the participants will not be confused, but also will get a lot of programmers who really understand the underlying problems and will not toss those idiots 'object model' junk.

So I'm sorry, but for the software with GIT efficiency as the main target, the so-called advantage of C ++ is just a huge error. We will not be able to see this, but it has become a huge additional advantage.

If you want to use a version control system written in C ++, go to monotone. They actually use 'real-size database', 'pretty object-oriented database', and 'pretty C ++ abstractions '. But to be honest, the final result of all these attractive design decisions for some computer professionals is a pile of terrible, hard-to-maintain spam ."

The debate between Torvalds and Dmitry kakurin continues.

In response to Torvalds, Dmitry turned to the opposite side: "as dinosaurs who only use C Programming gradually become extinct, you will soon find that you have to stick to your own opinions. The number of git contributors does not indicate the problem. Obviously, C ++ developers can also contribute C code. But they thought they liked this method, and that would be wrong.

"I use assembly programming when there is no C. Then, before C ++ was born, I switched to C. Now I am using C ++ and C #, and I will not go back. Poor programmers cannot write programs in any language. However, it is a nonsense to punish outstanding developers for rejecting poor contributors for such an unsung reason ."

After just 10 minutes, Torvalds replied: "What's different from you is that I actually gave the reason why I don't like C ++, it also points out some examples of various problems that it may cause. But you didn't give a decent reason to use C ++. In fact, git is better than other software configuration management software. The good taste (taste) and C are one of the reasons.

"This has nothing to do with dinosaurs. Good taste will never expire. Comparing C with the assembly language just shows that you lack a minimum concept of your questions (don't have a friggin idea )."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.