(Mr. PC, do you speak Ruby?)

Yesterday, I got home from work completely exhausted. I fell asleep during the first few parts of yesterday’s lessons. Luckily, yesterday was about installing ruby to your computer and “talking” to your computer in the Ruby language using the Ruby Bash. 1

When you install Ruby, there is no one way. If you’re using a Mac, Ruby is already installed on your system by default, but the problem is that the default Ruby version is outdated, therefore you’ll have to update your Ruby via a tool called Ruby Version Manager (RVM). You’ll have to use your Terminal to install this tool and have it upgraded to the latest version. 2 If you’re a Windows user, you just download an executable file called the Ruby Installer and then simply follow the instructions there. Yay Windows!

Next, in order for you to “talk” to your computer via Ruby, you’ll have to open your Terminal again and enter the Ruby Bash. You just type in the command irb and the command line interface would change a bit, just like what you see in the screenshot above. Once you’re there, you can start “talking” to your computer in Ruby. We were also given a basic starter kit cheatsheet of Ruby’s most commonly used methods for our own personal references.

In today’s lesson, we went through the very basic programming concepts, such as the types of objects. Strings, integers, true/false 3, and nil 4 We went through quite a good number of challenges with the Terminal and the Ruby Bash. There is still more to cover the basics, but Skillcrush decided to take it slowly and saved the rest for tomorrow’s class.

That’s about it so far. Once again, nothing  concrete just yet, but I’m off to a good start.

On the sidenote…

  1. “irb”
  2. Ruby ver. 2.0
  3. Boolean?
  4. As in nada, zilch, nothing. Funny thing though is that nil does not equate to the neutral integer of 0.