C++ vs. Ruby , which is better?

C plus plus

C++

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

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.

Ruby

Difference and similar

Website

C++

isocpp.org

Ruby

www.ruby-lang.org

Paradigm

C++

Multi-paradigm: procedural, functional, object-oriented, generic

Ruby

Multi-paradigm: Object-oriented, imperative, functional, reflective

Designed by

C++

Bjarne Stroustrup

Ruby

Yukihiro Matsumoto

Developer

C++

Bjarne Stroustrup

Ruby

Yukihiro Matsumoto

First appeared

C++

1985

Ruby

1995

Stable release

C++

1 December 2017

Ruby

March 28, 2018

Typing discipline

C++

Static, nominative, partially inferred

Ruby

Duck, dynamic, strong

License

C++

Ruby

Ruby, GPLv2 or 2-clause BSD license

Filename extensions

C++

.C .cc .cpp .cxx .c++ .h .hh .hpp .hxx .h++

Ruby

.rb

Popular Framework

C++

  • Standard Template Library (STL) i
  • Boost

Ruby

Type

C++

Compiler Language

Ruby

  • Extension languages
  • Functional languages
  • Hardware description languages
  • Imperative languages
  • Multiparadigm languages

Syntax

C++

Ruby

C++ and Ruby reviews

comparman

compargram

@comparman

C++

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++

comparman

compargram

@comparman

C++

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

comparman

compargram

@comparman

C++

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.

comparman

compargram

@comparman

C++

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.