Note: C is a great and spam language.

Source: Internet
Author: User

For every cProgramThe development of the C language written by Dennis M. Ritchie should be a required document. Through Google's Chinese version (the development history of Google's C language), the first translation made me uncomfortable. Yqj2065 is translated using a number of documents that you cannot copy to andArticleSome private activities have also been added, and the words are not refined, which is roughly fluent. The key is to make them correct. Xin yada-Xin is the first.

C language development history-1. C language development history-2. C language development history-3

I will improve them if I have time, so please be careful when reprinting them.

OK. Let's talk about the C language. A thousand words:C is a great and spam Language.

I have seen some poetic compliments: "in other languages, variousAbstract and sweet syntaxTake care of yourCodeSo that you cannot see its heartbeat. But in C language, it is like a football, and it is running and moving on the ground. Simple syntax, simple keywords, this is the most brilliant description of General von noriman John's machine. In C language, the soul of the program is open directly to us. We can see and feel it, so I speak C language and beautiful language. "

Similar descriptions are everywhere. In particular, C's conciseness, Tan C's "high degree of freedom in programming", and high efficiency...

1. concise. Only the first child is concise. Like the waterfall model of software development, C is widely knownProgramming LanguageIt is concise before or even before c89/90, and can be kept concise only when you focus on a small application field. Every time you add a keyword, such as _ bool, inline, _ static_assert, and _ atomic, the language complexity increases. In addition, concise C has obvious redundancy of auto and register. The obvious reason for redundancy is that the compiler and runtime environment have done some "sweet" work.

2. Freedom of style. This is a disadvantage. It is a disadvantage in any aspect. With the development of C, the legacy of the BCPL era and the old style of K & R1 are all compatible with new standards. A good compiler will warn the old style, so that the programmers who pursue freedom may suffer from time to time.

3. Efficient. This is the biggest advantage of C, but efficiency is not the ultimate goal of programmers. B, the predecessor of C, is an explanatory language. Dennis M. Ritchie wrote: "using assembler is too depressing,Therefore, even if B has performance problems, B already has a small routine library containing useful service routines, and is used by more and more new programs. "The programmer's goal is to write a program to solve the problem. Of course, it is a prerequisite to replace the compilation system to realize the language status. When someone says, "Who is better than C, who is more efficient, so XXX", why don't we ask: "Why don't you use Assembly directly? ".

4. Long-lasting. This is the most deceptive statement. I have seen that "C has been popular for 40 years. This is what we need to learn." If this is half right, the explanation of it depends on how you think about this half right thing. I think C should be given four big words:Accumulating difficulties. If you think the market will always choose the best and most efficient technology, you are wrong. Why do we use the QWERTY keyboard? Is this the most effective design for arranging typewriter keyboards? In fact, designers are designedSlow down the typing speed. When a design is used by thousands of people, it basically occupies the market permanently ." The success of c... there is no doubt that the success of UNIX itself is undoubtedly the most important factor; it makesThis language can be used by thousands of people.. "

5,C is great because it has occupied the market for system implementation languages, unless someone uses go or D to implement a popular operating system; it is because it replaces assembly and is more efficient than other languages; this is because it is simple. It focuses on its own field rather than on its own.

 

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.