Skip to content
BENIBIX Learn

Ruby

Development🔤 LanguagesPopular Languages

A language made to be nice to write. It is best known for Rails web apps.

Think of it like

Think of it like a pen that writes neatly on its own. It was made to make the person writing happy.

Example

Jack builds a booking site for his yoga class in a weekend with Ruby on Rails.

Why it matters

Ruby showed that a language could put the writer's joy first. Rails shaped how many web frameworks work today.

Definition

Ruby is a language made to be pleasant to read and write. Yukihiro Matsumoto made it in Japan, and it came out in 1995. It became famous through Ruby on Rails, a framework for building web apps quickly. Code in Ruby often reads almost like an English sentence. GitHub and Shopify were first built with Rails.

Example code

ruby
puts "Hello, world!"
3.times { puts "Hi" }
The second line says hi three times, and reads almost like English.

Common mistake

Mixing up Ruby and Rails. Ruby is the language; Rails is one framework written in it.

Key takeaways

  1. 1
    Made for people. Reading it should feel easy.
  2. 2
    Famous for Rails. A web framework made it popular.
  3. 3
    Everything is an object. Even the number 3 has methods.

Learn it properly