Zum Inhalt springen
KodeTrail

Camp 1 · Schritt 1 von 12

Why Ruby?

A language designed for programmer happiness — and the framework that built half the startup world.

8 Min.+50 XPAuf Englisch angezeigt — Übersetzung ist unterwegs

Most languages optimize for machines. Ruby's creator, Yukihiro "Matz" Matsumoto, optimized for something else: "I wanted programmers to be happy." That single design goal shaped everything.

What happiness looks like in code

Ruby reads remarkably like intent:

5.times { puts "step" }
["boots", "map"].each { |item| puts item }
"trail".upcase

Five times, print step. No ceremony, no boilerplate — even numbers are full objects with useful methods. Code that reads aloud well is code that's easy to write, review, and return to.

Rails: the startup engine

In 2004, Ruby on Rails made building database-backed web apps absurdly fast — and a generation of startups took the deal: GitHub, Shopify, Airbnb, Stripe (early), Twitch, Basecamp all grew up on Rails. Shopify alone processes hundreds of billions of dollars through Ruby today. The "Ruby is dead" meme is written, ironically, on platforms running Ruby.

First taste

RubyCloud-Run

puts prints a line. And yes — that's a method called on the number 3. More on that shortly; it's Ruby's whole worldview.

Checkpoint

What was Ruby explicitly designed to optimize?

What's next

Run Ruby properly — puts, p, comments, and the friendly conventions.