Search NoSQLSolution

7L7D - Ruby, day 1

28 October 2011

ruby was one of those languages that I wasn't really looking forward too. Mainly because it's the only OO language in the book (though some people have told me it's not really an OO language).

Regardless, here are the exercises:

1) Hello World

2) find the index of the word Ruby in 'Hello Ruby'

3) print my name 10 times

4) print the string 'This is sentence number X' 10 times

5) run a program from a file......

bonus problem: The random number game.

My thoughts for day one:

Meh. ruby at this points seems exactly like python.

Popular Posts