C++ vs. Ruby , which is better?

C plus plus


C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation.


Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan.

Website isocpp.orgwww.ruby-lang.org
Paradigm Multi-paradigm: procedural, functional, object-oriented, genericMulti-paradigm: Object-oriented, imperative, functional, reflective
Designed by Bjarne StroustrupYukihiro Matsumoto
Developer Bjarne StroustrupYukihiro Matsumoto
First appeared 19851995
Stable release 1 December 2017March 28, 2018
Typing discipline Static, nominative, partially inferredDuck, dynamic, strong
Filename extensions .C .cc .cpp .cxx .c++ .h .hh .hpp .hxx .h++.rb
Type Compiler Language
  • Extension languages
  • Functional languages
  • Hardware description languages
  • Imperative languages
  • Multiparadigm languages

C++ vs Ruby reviews

C++ is a large language with an even larger community and following. It has libraries for every kind of task that is possible to do with C++

Allows puting large arrays on the "heap" to avoid "stack overflow".

The great STL is the most powerful Data Structure and Algorithms Library. It would benefit you very much in problem solving, your main main way to love programming. The code is much compact compared to Java and C#. No unnecessary classes are in your way; yet when you need classes they are available unlike C. The code runs very fast.

Both open source compilers (such as Clang and GCC), and proprietary ones (like Intel's and Microsoft's) are very good at analyzing program flow and program optimization. This is mostly due to the widespread usage of C/C++ applications running everything from mobile/desktop/server Operating Systems, to search engines and webserver software, and the demand for performance.