Cee And Cee Plus Plus Compared To Other Languages

C/C++ (CeeCeePlusPlus) compared to RubyLanguage

Let's start with Ruby: what does Ruby do that C++ cannot do?

What does C or C++ do that Ruby cannot do? I would love to see counter-examples for any of the following. -- DevilsAdvocate This list was a bit dated. Maybe all but the top four should be removed. --JesseMillikan

Both can do the same things--any program written in one can be written in the other, given enough time and effort. Please read TuringTarpit.

Ruby is most frequently used in scripting applications. It is a DynamicallyTyped language, and usually interpreted. Contrast with C++, which is StaticallyTyped and usually compiled to machine instructions.


C/C++ compared to PythonLanguage

Python being the big winner of the ShortestWikiContest. See Ruby


C/C++ compared to DelphiLanguage

Delphi is an object-oriented extension to Pascal. It's pretty much supported by one particular vendor, and designed for business applications. Personally, I would only use Delphi for legacy stuff--meaning code which is written for an existing system implemented in Delphi. Nothing against the language per se, just that it isn't something freely available and portable to lots of different platforms

There are at least 2 open source implementations of Delphi, and besides that a freely downloadable GPL distribution from Borland for educational purposes.

One Open Source implementation (www.freepascal.org) runs on 5 architectures and 20+ OSes, and that count is still increasing monthly


Perl and Python are scripting languages. C and C++ are system languages. They are different types of languages, for different applications.


C/C++ compared to VisualBasic

What does VisualBasic do that C or C++ cannot do?

When I'm single-stepping through a program, looking at the source code in the debugger, I can (usually) change the code and continue stepping through the new code. With all the C development environments I know about, any change to the code requires a recompile before I can step through the new code. MSVC has supported Edit and Continue since version 6.0 for small changes (no type changes).

What does C or C++ do that VisualBasic cannot do?


C/C++ compared to PostScript/ForthLanguage

What does PostScript/Forth do that C or C++ cannot do?

What does C or C++ do that PostScript/Forth cannot do? [Now hold on a doggone minute! Forth IS ITS OWN IDE! And an interactive one at that! Just because it doesn't have the "slick" look some are used to doesn't mean it's not extremely powerful -- it is. Forth is a programming language, a compiler, an editor, a methodology, an IDE, and a floor wax all in one package.

[Its a semantic thing. In Forth, rather than "libraries," it has "vocabularies" and "wordlists." There are many of them, but one of the main tenets of Forth is to only code what you need, and libraries carry a lot of baggage with them. In Forth, adding and using a few well-chosen "words" may be all one really needs.


C/C++ compared to all other languages

What would you do in C/C++ that you wouldn't do in any other language? Interface with an OS that exposes a C/C++ API?

Ignoring for a moment the whole turing-complete line of argumentation, I can write device-drivers, DSP code, code for small embedded systems in a language that allows both close control over the generated machine code and use of high-level object oriented and generic programming constructs. Whew! --AndrewQueisser

[You know, preferences aside -- Forth can do all these things; in fact, it excels at each of them. One could even easily argue that Forth does these particular things better and more easily than C/C++.]

I would write robust, secure, and fast code with modern C++ idioms including specifically RAII. - SmugCppWeenie?


CategoryComparisons CategoryCee CategoryCpp


EditText of this page (last edited February 18, 2013) or FindPage with title or text search