Several minutes to help you solve the C ++ complexity Problem

Source: Internet
Author: User

Some errors can still be found only when running, so we need to add some test code to ensure the correctness of the program. Pair Programming allows one person to write some C ++ complex code. Another person considers the global situation. Once the encoding cannot proceed, the code can be exchanged and discussed together.

Why is it true that the Chinese C ++ community has been suppressed by C ++ for too long? Or, strictly speaking, it has been put down by the C ++ education mode for too long. In fact, whether on major domestic forums or on comp. lang. c ++. on International C ++ forums such as moderated and even in douban groups, interested parties will find that the attention to the details of the C ++ language has never been stopped.

Similarly, complaints about the details of the C ++ language have never been stopped. One example is comp. lang. c ++. james Kanze, a technical expert on moderated, said that he has been in contact with C ++ for ten years and now he still needs to go through the C ++ standard from time to time. It's no wonder that Eric Raymond's boss said in The Art of Unix Programming that "C ++ is compact. There are too many details in C ++. Even if I have read them all, I cannot remember them all. Even if you remember it, you cannot become a really good programmer.

The vast majority of people refer to too many details or "too many dark corners" as the essence of C ++ complexity, and think that all evil is born from this. That's why Linus said on the mail list about February September that "C ++ is a language with ideological burdens, just to keep programmers away from C ++, I also want to use C ".

  • Reference functions and variables in C ++ in C
  • Advanced technical scholars compile C ++ code
  • Detailed description of C ++ compilation and code Problems
  • Describes various programming skills of C ++.
  • How to Learn and explore issues when using C ++ Builder

This short sentence has aroused a great reaction in China. When Liu jiang switched to Linus, Yun Feng and Meng Yan both expressed their views; I also wrote an article "Why C ++" and sent it to Bjarne. Bjarne made a friendly comment on this article ).

However, I believe that the changes may not be very great. Most of the original opponents can find out the reasons for their opposition, so they are more opposed. Most of the original advocates can also find the reasons for their consent, so they agree more. The remaining ones do not have clear opinions, there may be no clue as to why each party has its own logic.

Now, almost everyone who learns C ++ knows that the core issue of C ++ is its complexity. Even those who are not in the C ++ community themselves know that this is a fact. The eyes of the masses are bright, not to mention the fact that this is too obvious. I have read countless articles describing the complexity of C ++, and I have discussed the complexity of C ++. I wrote two articles about C ++ ).

I have always felt like a blind person. As a reader of "Why C ++" criticized, I did not specify in my article what is C ++'s "non-essential complexity ". Of course, I can know it by myself, and even if I have been in contact with C ++ for a while, however, new users or even non-beginners have no specific understanding of what I call "non-essential complexity, this leaves the article "Why C ++" out of its original intent-oriented to all C ++ users and learners.

For the same reason, after writing the article "How should you learn C ++", Mr. Meng asked me to write a series of articles for "programmer, let me introduce my attitude and understanding in the process of getting in touch with C ++. Although I was very happy to agree, I still had no choice but to accept it three months later.

Why? Because I don't think the real nature of the problem is clearly touched; so I haven't done anything until now, so I don't want to talk nonsense, except for being able to read as a novel, it may not be of practical use to those who really want to learn or even use C ++.

However, such an idea has always been placed in the subconscious. A while ago, I communicated with Bjarne and talked about some ideas about the complexity of C ++. I summarized the complexity of C ++ in my email, and I felt a lot clearer. The purpose of this article is to convey a specific and clear understanding of the complexity of C ++. With this understanding as a support, we can then export the best practices for learning C ++.

Related Article

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.