One day I needed to use Ruby at work, and while looking for a way to learn it, I found a really useful resource on the official Ruby site: Try Ruby. For anyone who has some experience with another language, I think Try Ruby is the best tool for learning Ruby in the shortest time!
What Is Try Ruby?
Try Ruby is a free tutorial site where you can learn Ruby interactively right in your browser.
What’s Good About It
Easy to Get Started
If you’ve learned another language before, you may have struggled with setting up the environment at first. But with Try Ruby, everything happens in the browser, so there’s no installation or configuration at all, and you can start right away!
Cute Illustrations
The image above is a screenshot of the actual site.
The step-by-step guide is easy to follow, and you can grasp the basics of Ruby in about 30 minutes.
Learn Efficiently in a Short Time
Just by completing the roughly 30-minute tutorial, you can understand Ruby’s basic syntax and concepts. If you’re already proficient in another language, I think finishing this tutorial will let you quickly get a feel for what makes Ruby distinctive!
What You Can Learn with Try Ruby
With Try Ruby, you can learn the following basics:
- Basic data types (numbers, strings, arrays, hashes, and so on)
- How to use variables and constants
- Basic methods and control flow (if statements, loops, and so on)
- Simple object-oriented programming concepts
Something that personally made me go “Wait, you can do this in Ruby!?” was
5.times { print "Odelay! " }
this code, which prints Odelay! five times.
Learning After That
After learning the basics with Try Ruby, I think you can build deeper knowledge by referring to the official documentation.
Ruby’s official documentation is very thorough, with detailed explanations and plenty of sample code. Building on the basics you learned here, let’s keep honing skills you can use in real work and projects. 💪
Closing
I’ve only just started learning Ruby, so if you know any useful resources, please share them in the comments!