courses / ruby

learn ruby

Three levels, from never written code to writing it like a professional. Elegant and a joy to read.

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. 0 of 4 · 36 min
  1. Making a hash9 min
  2. Symbols make good keys8 min
  3. Changing a hash9 min
  4. Looping over a hash10 min
2 unit 2 More Enumerable Change, filter, total and sort whole collections at once. 0 of 4 · 38 min
  1. Change every item with map8 min
  2. Keep some, drop some9 min
  3. Boil it down with reduce10 min
  4. Sort, group and chain11 min
3 unit 3 Strings with style Cut text up, tidy it and line it up neatly. 0 of 4 · 36 min
  1. Split and join8 min
  2. Numbers that look right9 min
  3. Line it up9 min
  4. Text with many lines10 min
4 unit 4 Files and JSON Save data in files and read it back, as plain text or as JSON. 0 of 4 · 39 min
  1. Write it down, read it back8 min
  2. A file of lines10 min
  3. JSON turns data into text10 min
  4. Data inside data11 min
5 unit 5 When things go wrong Catch errors, recover from them and raise your own. 0 of 4 · 39 min
  1. Catch it with rescue9 min
  2. Rescue the right error10 min
  3. Always tidy up with ensure10 min
  4. Raise your own errors10 min
6 unit 6 Your own classes Design your own kinds of value with classes. 0 of 4 · 40 min
  1. Making a class9 min
  2. Objects that remember10 min
  3. Readers, writers and to_s10 min
  4. Inheritance11 min
7 unit 7 Modules and the toolbox Mix in shared skills and use Ruby's own toolbox. 0 of 4 · 40 min
  1. Your own kind of error10 min
  2. Modules hold tools9 min
  3. Mix in Comparable11 min
  4. The standard library and gems10 min
end of level 2 level check Build one small project with everything from this level. Pass it and your face levels up. see the check