Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is C++ a "waste of time"? [closed]

Tags:

I ran into this supposed interview of Bjarne Stroustrup, the inventor of C++.

http://artlung.com/smorgasborg/Invention_of_Cplusplus.shtml

Stroustrup: Well, it's been long enough, now, and I believe most people have figured out for themselves that C++ is a waste of time but, I must say, it's taken them a lot longer than I thought it would...

Interviewer: Yes, but C++ is basically a sound language.

Stroustrup: You really believe that, don't you? Have you ever sat down and worked on a C++ project? Here's what happens: First, I've put in enough pitfalls to make sure that only the most trivial projects will work first time. Take operator overloading. At the end of the project, almost every module has it, usually, because guys feel they really should do it, as it was in their training course. The same operator then means something totally different in every module. Try pulling that lot together, when you have a hundred or so modules. And as for data hiding, God, I sometimes can't help laughing when I hear about the problems companies have making their modules talk to each other.

Is this a hoax? Do any of these points seem true for any of the veteran C++ programmers out there?

like image 674
Unknown Avatar asked Mar 16 '09 01:03

Unknown


People also ask

Is C useful anymore?

The C programming language doesn't seem to have an expiration date. It's closeness to the hardware, great portability and deterministic usage of resources makes it ideal for low level development for such things as operating system kernels and embedded software.

Why is C becoming popular again?

Another reason for C's popularity might be because of the language's use in embedded devices and its cross-platform programming. As the Internet of Things continues to gain prominence, C will also likely grow along with it, as well as continue its use as a general-purpose programming language.

Why is C popular today?

The C programming language is so popular because it is known as the mother of all programming languages. This language is widely flexible to use memory management. C is the best option for system level programming language.

Why C is close to machine?

If you compare C with java , C is closer to the hardware, because java does not directly operate on the system. Java is executed on the java virtual machine, which then operates on the system. C does not have such a layer between it and the system and is therefore closer to the harware.


1 Answers

You just have to check the Stroustrup's website (the FAQ part) to find that it's wrong - a well known hoax as Judah Himango already pointed :

Did you really give an interview to IEEE?

in which you confessed that C++ was deliberately created as an awful language for writing unmaintainable code to increase programmers' salaries? Of course not. Read the real IEEE interview.

like image 174
Klaim Avatar answered Sep 20 '22 12:09

Klaim