Ruby

Join the Ruby Track
Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
Join the Ruby Track
Track mentors

101 Mentors

Our mentors are friendly, experienced Ruby developers who will help teach you new techniques and tricks.
Track students

23,492 Students

Join thousands of students who have enjoyed learning and improving their skills by taking this track.
Track exercises

96 Exercises

Hundreds of hours have gone into making these exercises fun, useful, and challenging to help you enjoy learning.

About Ruby

class HelloWorld
  def self.hello(name = 'World')
    "Hello, #{name}!"
  end
end

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.

Ruby was created as a language of careful balance. Its creator, Yukihiro “Matz” Matsumoto, blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.

He has often said that he is "trying to make Ruby natural, not simple," in a way that mirrors life.

Building on this, he adds: "Ruby is simple in appearance, but is very complex inside, just like our human body."

You can read more about the Ruby language on its site.

Join the Ruby track

I loved the Ruby track

I loved the Ruby track (it is the only one I have finished so far). Solving over 80 different problems seems one of the most exciting ways to learn a language one barely knows. Improving my own solutions for readability and beauty rather than just passing the tests and performance taught me a little about Ruby and programming in general. I also liked comparing my solution to other ones - I could see the problem from other points of view.

Relaxed. Encouraging. Supportive.

Meet the Ruby Track mentors

Once you join the Ruby language track, you will receive support and feedback from our team of mentors. Here are the bios of a few of the mentors of this track.

Avatar of David Vrensk

David Vrensk https://github.com/dvrensk

I love Ruby because it delivers on its promise: programmer happiness. As a programmer, I'm happy when my code is intention revealing, easy to reason about and easy to change. I have used Ruby to build 4 startups over 12 years and I'm not done yet.
Avatar of Paul Martensen

Paul Martensen https://github.com/Haniyya

Backend engineer at Lokalportal. Been writing ruby for just shy of 5 years.
Avatar of Andrew Hampson

Andrew Hampson https://github.com/CuriousPhysicist

I am a professional Ruby-on-Rails developer, programming enthusiast and have been programming in Ruby since 2016.
Avatar of Eumir Gaspar

Eumir Gaspar https://github.com/corroded

I love Ruby and am very passionate about it. I have used Ruby (and Rails) professionally since 2009 and have maintained the RubyConf Philippines site as a volunteer since 2014.
Avatar of Donato Azevedo

Donato Azevedo https://github.com/donatoaz

Ruby caught my attention due to its idiomatic constructs and powerful metaprogramming capabilities. I've been working with ruby for half a decade and am trully in love with how elegant the code is. I would very much like to evangelize and enfuse in others this passion for ruby.
Avatar of Vladislav Promzelev

Vladislav Promzelev https://github.com/rutaka-n

I'm a software engineer. I develop high load systems with erlang/otp and elixir. Also I have experience with ruby and some other programming languages.
Fun. Challenging. Interesting

Community-sourced Ruby exercises

These are a few of the 96 exercises on the Ruby track. You can see all the exercises here.

Pythagorean Triplet
medium
algorithms
math
Collatz Conjecture
easy
control flow loops
integers
conditionals
math
Pig Latin
medium
conditionals
strings
transforming
Clock
easy
equality
text formatting
time
Scale Generator
easy
pattern matching
strings
Proverb
medium
arrays
loops
strings
Passionate. Knowledgeable. Creative.

Meet the Ruby Track maintainers

The Ruby Maintainers are the brains behind the Ruby Track. They spend their spare time creating interesting and challenging exercises that we can all learn from. We are incredibly grateful for their hard work. Here are the bios of a few of the maintainers of this track.

Avatar of Maud de Vries

Maud de Vries

Ruby and Rails fan
Avatar of Hilary Holz

Hilary Holz

25+ years experience as a software engineer, specializing in the web since NCSA HTTPd and Mosaic. Ruby has been my primary language for the past 7 years; it fills me with glee.
Avatar of Pedro Gaspar

Pedro Gaspar

Ruby has been my go-to language for the past 6 years. I love how readable and intuitive it is. I'm thankful for the opportunity to help others on their journey in any way I can and I'm hoping to become a better mentor in the process :)

Get started with the Ruby track. As with everything on Exercism, it's 100% free!

Join the Ruby Track