courses / ruby
learn ruby
Three levels, from never written code to writing it like a professional. Elegant and a joy to read.
from zero to your first real programs.
For people who have never written a line of code. Nothing is assumed: every new word is explained the moment it appears.
1 unit 1 Say hello Make the computer do exactly what you tell it.
2 unit 2 Boxes with names Make the computer remember things.
3 unit 3 Words and numbers Tell text and numbers apart and use both.
4 unit 4 Make decisions Make your program choose what to do.
5 unit 5 Repeat yourself Do the same thing many times without copying.
6 unit 6 Arrays Keep many things together and work through them.
7 unit 7 Your own methods Wrap code up so you can use it again.
build things that are actually useful.
For people who finished Level 1, or can already write small programs with variables, decisions, loops and functions.
1 unit 1 Hashes and symbols Look things up by name instead of by number.
2 unit 2 More Enumerable Change, filter, total and sort whole collections at once.
3 unit 3 Strings with style Cut text up, tidy it and line it up neatly.
4 unit 4 Files and JSON Save data in files and read it back, as plain text or as JSON.
5 unit 5 When things go wrong Catch errors, recover from them and raise your own.
6 unit 6 Your own classes Design your own kinds of value with classes.
7 unit 7 Modules and the toolbox Mix in shared skills and use Ruby's own toolbox.
write ruby like a professional.
For people who build things on their own and want code that others trust and can change.