# Ruby

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

**Field:** Software Development  
**Category:** Languages

## 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.

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

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

## Example code

```ruby
puts "Hello, world!"
3.times { puts "Hi" }
```

The second line says hi three times, and reads almost like English.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Hypertext Preprocessor (PHP)](https://learn.benibix.com/term/development/php)
- [Python](https://learn.benibix.com/term/development/python)
- [Interpreted Language](https://learn.benibix.com/term/development/interpreted-language)
- [JavaScript](https://learn.benibix.com/term/development/javascript)

## Taught in

- [PHP and Ruby for the Web](https://learn.benibix.com/learn/development-languages/php-and-ruby-for-the-web): Programming Languages, 6/12

---

Source: https://learn.benibix.com/term/development/ruby
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
