Ruby was designed to make programmers happy — an elegant, object-oriented language that feels like sketching.
1 Designed for Happiness
Matz built Ruby around human joy first and machine convenience second.
2 Elegant Syntax
Parentheses are optional and code reads like sentences: 3.times { print "hi" }.
3 Everything is an Object
Numbers, strings, even nil — every value has methods you can call.
4 Web Famous
Ruby on Rails powers giants like GitHub and Shopify around the world.
Why learn Ruby?
Designed for Happiness1Matz built Ruby around human joy first and machine convenience second. Elegant Syntax2Parentheses are optional and code reads like sentences: 3.times { print "hi" }. Everything is an Object3Numbers, strings, even nil — every value has methods you can call. Web Famous4Ruby on Rails powers giants like GitHub and Shopify around the world. 4 building blocks make up Why learn Ruby?
1995 Ruby 0.95
Yukihiro "Matz" Matsumoto releases the first public version in Japan.
1998 Ruby 1.0
The language stabilizes — elegant, fully object-oriented, made for humans.
2005 Rails boom
Ruby on Rails turns Ruby into a web-development superstar.
2007 Ruby 1.9 + YARV
A brand-new virtual machine makes Ruby dramatically faster.
2020s Ruby 3 speed
Ruby 3 ships the promised big speedups and keeps maturing type tools like RBS.
Press Run and watch hello.rb travel through the interpreter — Ruby also skips any manual build step.
Press play — variables appear and puts writes to the console line by line.
mainComments start with # — the interpreter skips straight over this line.
Memory
no variables yet — press play
Console
output appears as the program runs…
Click a term, then click its description to lock the pair.
4 conceptsTap a card to expand ?ruby hello.rbdrops into place
?putsdrops into place
?gets.chompdrops into place
?irbdrops into place
Strings can do surprising things — think about precedence first.
Your predicted output — one line per console line
Hint: Multiplication binds tighter than addition, so "na" * 2 repeats first. And "1" + "2" glues text — it does not add numbers.
01ruby hello.rb runs the file directly: parse → compile to YARV bytecode → execute.
02puts adds a newline; print does not.
03gets.chomp reads typed input and strips the trailing newline.
04irb is the interactive Ruby shell — perfect for experiments.