Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
Do programmers still write in C++?

Do programmers still write in C++?

Feb 06 2013
Author:

I find this question pretty strange. The answer is yes, of course, and that will remain so for a long time. But I'm asked this question from time to time at conferences, or when communicating with developers on forums. I've decided to answer this question in the form of a brief post, so that I can just refer people to it in the future.

Currently, in addition to C and C++, PVS-Studio static analyzer supports finding bugs in programs written in C#.

We develop the PVS-Studio code analyzer for C/C++ software developers. People sometimes ask me, "Why these particular languages? C/C++ is old and few developers use it surely?" When I tell them this is quite a popular language, and it is widely used, they look sincerely astonished.

Perhaps the reason is that the Internet is full of articles, forums, and news about new languages and their capabilities. Programmers who don't work with the C/C++ language, simply don't notice rare news items about it among all that stuff. It's quite natural: there's no point in advertising what has been widely known and used for a long time. As a result, they come to the conclusion that this language was abandoned long ago, and now is used only to maintain some old projects.

This isn't the case. This is a very popular, live, and actively developing language. Just have a look at the rating of programming languages, and see for yourself. Currently it can be found here: TIOBE Programming Community Index for January 2013.

0185_Do_programmers_still_write_in_cpp/image1.png

If you sum up C, C++ and Objective-C, you'll get 37%. It's 6 times higher than PHP, for instance. The extinction of the C/C++ language family is quite out of the question.

Here's the answer to the question as to why we prefer to support C/C++ in PVS-Studio: because these are the most popular languages nowadays. Besides, they are complex, tricky, and very much error-prone. It's a paradise where static code analyzers can thrive.

Note. Don't take that as a criticism of the C or C++ language. It's just the price we have to pay for the flexibility of these languages, and the capability of getting the fast optimized code they generate.

Once again I would like to touch upon the incorrect belief that C/C++ is now used only in old projects, or microcontrollers. No, many contemporary and popular applications are being written in this language. For instance, Chromium - you can't say it's an ancient project by any means.

Here is a list of popular applications written in C++: C++ Applications.

To finish the article, I would like to give you one more link to a discussion: Why is C++ still a very popular language in quantitative finance?

Popular related articles


Comments (0)

Next comments next comments
close comment form