Ruby

Like Python, to which it is often compared, Ruby is a high level language written in C/C ++., It is multiplatform and strongly object oriented, with the first version appearing in 1995. Introduced with the intent to conceive an inspired language from Perl, Eiffel, or Ada, it works according to the "principle of least surprise", an expression which its creator Yukihiro Matsumoto clarifies in various interviews.

Ruby is best known in the world of web development, along with the free framework Ruby On Rails, with the first stable version being released in 2005. Let's go back to the fundamentals: its syntax, its operation, its approach to programming by object, etc.

Why choose Ruby as a programming language ?

The syntax of Ruby inspired that of Elixir, running on Beam virtual machine, and Crystal, which is compiled in LLVM bitcode.

A language simplified by a set of conventions :

Thanks to a set of rules such as the role of capitalization to distinguish constants, the language has been made simpler and more intuitive.

His sources of inspiration are Perl, Smalltalk and Python.

  • With the object "main" object, variables and functions become attributes and methods
  • Simple inheritance
  • Overloading operators
  • Closures and continuations
  • Multi-stain, exceptions
  • Reflection

UTF-8

Variables and constants:

  • Capitalized or uppercase identifiers refer to constants
  • Real numbers are recognized by a point followed by a number or zero
  • Global variables start with $. Note that here the language Go uses the capital letters
  • Attributes in classes start with @
  • Local variables are simple identifiers

To learn more.

Explorium delivers the end-game of every data science process - from raw, disconnected data to game-changing insights, features, and predictive models. Better than any human can.
Request a demo
New! Explorium Closes $75M Series C Amid Soaring Demand for External Data Learn More