Beginning Ruby
"If you like Perl, you will love Ruby"; I dismissed this advice from a friend a few years back ("yet another fad", I thought, refusing to even look at it). Then, the curiosity prevailed, and I discovered that this language is indeed splendid; and, in spite of the differences, something resonates with Perl... a Perl reborn as a beautiful object oriented language.
- So, here I am, making up for the time lost. There are 2 books that guided my study:
- the Pickaxe. I did not love everything of this book (that jukebox..); but I did love Chapter 24 "Classes and Objects", with its detailed diagrams of the Inheritance mechanisms. Until then, Ruby inheritance was kind of... ethereal; with that chapter, it became real, concrete, understandable data structures (see my animations based on those diagrams, under Inheritance Diagrams in the select box on the left).
- and the splendid book of David A. Black (whose themes I develop under the Ruby + tab).
I wrote here my initial thoughts and experiments while I studied the language (I then continued with a more disciplined approach, under the Ruby + tab).
So, let's enjoy this language, which, in the words of its creator, is "a better Perl than Perl"...
[URL: ; Last updated: ]