Learning Ruby



As I have been undertaking various short courses with Codecademy.  I have now moved on to Ruby which so far is goimg well.  Completed firs section of the course, which works out to be about 5% currently working through the second part which is control flow, so using if, else and elsif conditionals.

x = 20
y = 20
if x < y  # Assumes x and y are defined
  puts "x is less than y!"
elsif x > y
  puts "x is greater than y!"
  puts "x equals y!"

As an example from the course,  which I have actually modified as I was experimenting with what else would work.

There are about two follow up courses linked to this  Ruby on Rails and Ruby on Rails authentication.   But I am going work through the Ruby course first.