Starting Out in Ruby

Diving into Ruby for my apprenticeship! Exploring mind-bending features like class-scoped methods and overridden constructors has been quite the learning experience.

I started my apprenticeship for Ruby tonight. It is mind-bending to think about some of these paradigms. For instance:

  1. Extending a class to add a class-scoped method — i.e., appending a static method to Guid. This is crazy to me, but I can see some usages.
  2. Overriding constructors to return things other than the class being constructed — This makes factories and abstract factories language-supported constructs. It also made my statically typed brain hurt.

All in all I got a great tour of the "out of the box" Ruby features tonight and then set forth a schedule for some work to come.

This week: running through the Ruby Koans and then starting a console game (think Zork) to learn how to write Ruby correctly — not just C# in Ruby. Feel free to follow my progress and comment on GitHub.

Many thanks to Amir Rajan for taking the time to teach a friend some new skills.