Question:
Why are c and c++ the best programming languages?
AdH
2010-05-21 14:19:57 UTC
Why do you think that c and c++ are the best programming languages?

1: Everything is written in C or C++(Ex: VS or JVM);
2: Everything is written in C or C++(Ex: Linux and Windows)²;
3: Everything is written in C or C++(Ex: Mozilla and IE)³;
4: Everything is written in C or C++(Ex: Human Brain)²+²;
5: Too hard for stupid people, which makes C++ a language that has mostly good programmers, not just any idiot who "clicks more than write"

If C and C++ arent the best programming languages, why ALL important applications are written in C and C++? If you think that programming languages are just tools, then C++ is indeed a swiss knife.

Knowing all this, why many continues to use Java, C# and weak languages like that if it is clear which one is the better programming language? Is C++ too hard for them(you)?

PS: C/C++ programmer, with experience using C#, VB.net and also Java... And can I add assembly? You see, I know what Im talking about (y' I can(and will) be arrogant
Three answers:
Frxstrem
2010-05-21 14:41:37 UTC
Although there are many bad ones, there is not such thing as a "best" programming language - every programming language was developed for different purposes, and while I must say that C and C++ may great programming languages indeed, they're not good for everything, and as all other things in this world, they aren't perfect, not even close.



Just to mention one example, Java is a programming language with the slogan "write once, run anywhere", which just means that nearly every program written in Java can be run on almost all platforms that exist, or at least all the major ones. This is a huge advantage over most other languages (including C and C++), as they aren't nearly as portable and often rely heavily on platform-dependent libraries and such. But the downside, of course, is that the machine has to have the JRE (Java Runtime Enviroment) installed to do this, and this would not allow the program to operate at such a low level as C and C++ allows programs to do. (I might be wrong at this last point, sorry if I am)



Another example, which should be pretty obvious, is that C or C++ cannot be used as a scripting language, and has to be compiled first, unlike PHP, Perl or Python, and thus cannot be used effectively for for instance making websites or doing small administrative tasks for computers (what if people had to write and compile a whole program just to do that?).



But in the end, there's no "universally best" programming language, they're just better for specific goals.
Majestic Computing
2010-05-21 21:44:03 UTC
well for some stuff it is just more convinient, like i made a simple script today that was 30 line long that auto-voted with 3000 different people in a text tile. This would have been a lot more work in c++.
Bob
2010-05-21 21:28:37 UTC
many larger apps are written in C++ wich is native rather than managed


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...