Are programmers really inseparable from the C/C ++ language?

Source: Internet
Author: User

C/C ++ language as an efficient. NET programming language, which combines the function language and the object-oriented programming language, and is perfect for programming, algorithm, technology, and exploratory development, therefore, you can feel interesting and attractive in the use process.

It is true that we cannot deny the extraordinary charm of the C/C ++ language. However, we can't help wondering, in today's popular Windows, how can you use Windows C to compile a unique and powerful interface application? Even if you can, how long do you need?

Today, when many development tools are available, I emphasize that "C/C ++ is the language that programmers must master". Do no one really dare to raise questions? In fact, in today's world where the network is unified, any application must undergo network verification. Who can use the software will be recognized.

To achieve this goal, many Windows programmers have chosen tools such as Visual Basic and Dephi that are easy to learn and can be developed quickly and effectively. E_book e-reader is one of them. It was designed by Li Xiaodong using VB. If this seems too pale, let's take a look at the development history of C language from the past to the present and see why it is so developed.

As we all know, C language was developed in 1970s. Since people imagined a language that combines the advantages of a low-level language and a high-level language, C language was born. It is simple, compact, convenient, and flexible, and soon becomes a widely used language in the world.

However, C language is a process-oriented language after all, and data is separated from the data processing program. When a program is modified or deleted, all the relevant parts of the program must be modified accordingly, which makes it difficult to maintain the program code. To avoid this situation.

The object-oriented design method is referenced in C. It encapsulates data and corresponding functions for data processing into a class, and uses class data variables as objects. Only functions of an object can access the data of this object.

In this way, other functions will not inadvertently destroy its content, so as to protect and hide data. This is C ++. Of course, object-oriented C ++ also supports multiple inheritance, templates, Operator overloading, inline function definition, preprocessing, macros, Global static class variables, nested class definitions, and so on.

C ++ is too complex. Any enterprise that uses C ++ developers will pay more for it, because there are few and fewer excellent C ++ programmers. Based on the needs of software enterprise, people naturally need a simple, object-oriented, secure and flexible "Next-Generation Windows Services" (Next Generation Windows Services.

NGWS) application language, so C # appears. It comprehensively simplifies the functions of C ++, making it easier to learn than C ++. It neither has the concept of a pointer to the tragic C/C ++ language, nor does it perform "stupid" operations like ":", "." and "->.

Therefore, we can also say that C # is the language that programmers must master. However, we cannot ignore this point. Language is always a programmer's tool. Who is simple and easy to use, supports the latest technology, and can develop software quickly and effectively.

If the above conclusions are unacceptable, let's take a look at the current C ++ programmer's dilemma!

Currently, selecting C ++ means selecting Visual C ++ instead of C ++ Builder. This is the first headache for C ++ programmers. Because VC is the same as Windows 98/NT, the size of Visual C ++ applications with the same function is much smaller than that of C ++ Builder after compilation. Moreover, its stability and improvement programs are much stronger than those of C ++ Builder.

However, the name "Visual C ++" has misled many people who think they have bought a completely Visual programming system, similar to Visual Basic, and in the first few days, there was always such an illusion. However, people soon realized that they must actually write and read C ++ code. Although the Visual C ++ wizard can save time and improve correctness.

However, programmers must understand the code generated by the Wizard. The most important thing is to understand the structure of the Microsoft Foundation Class (MFC) Library and the internal working methods of the Windows operating system. Many C/C ++ DOS platform programmers regard this work method as a "boring and difficult" process. Although the new version of Visual C ++ 6.0 provides a console application type that allows DOS programmers to easily access the development of the MFC application, the above drawbacks cannot be fundamentally changed.

When Visual C ++ is selected, you must choose MFC, a program structure, and a programming style. However, because MFC is a product of the same generation of OWL, it has lagged behind the VCL era. From the development of ATL-based WTL, we can reverse the problem of MFC. This is probably the most embarrassing part for Visual C ++ programmers.

However, for the moment, we do not mention the awkwardness of MFC. Visual C ++ is just a little effort to change the appearance of the application. For example, to change the font and background of a widget, You have to regenerate a class, while VB only needs to change the attributes. This is evident from the popularity of Websites designed for Visual C ++.

In addition, the C/C ++ language often finds another embarrassment. A small BMP and jpg image display makes it easy to use Visual Basic, when it comes to VC, it actually requires so much code, and many subtle errors are often generated in the development of database applications, which makes programmers very angry. What's more, if someone still wants to use Visual C ++ to write Internet/Intranet programs, it is simply self-seeking.

Although, a good Visual C ++ Program pays a higher salary than other programmers. However, his effort is not comparable to that of other programmers. He not only needs to pay high training fees, but also bears a 90% unsuccessful probability. This is probably the most annoying thing for Visual C ++ programmers.

Of course, we didn't advise you to give up using the C/C ++ language. On the contrary, it is quite supported. Because the program structures and algorithms written in C/C ++ can be accepted by more people, after all, C has affected the entire 20 years. But now, can we still rely on it to "make a living?

I believe you already have your own answer. Of course, the reason we jumped out was to hope that programmers could not only think about it in this respect, but more importantly, we cannot blindly follow the tide of software development in our country, we should focus on the software industry, the Internet industry, and the information industry. We should also have our own destinations. Isn't there enough inspiration from India's software giants?

  1. How to Write C ++ project development and project plan correctly
  2. Summary Notes on learning and exploring C ++ library functions
  3. In-depth demonstration of high security of C ++
  4. Describes in detail how to accurately Write C ++ languages.
  5. In-depth demonstration of high security of C ++

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.