Ruby, let us say not goodbye, but au revoir

I finished the Programming Ruby book.  I read and interacted with the first few chapters very thoroughly.  After the section on Block programming, I started skimming.  It was exciting -there is a lot I could learn from Ruby: – Mixins instead of Inheritance – Blocks – how to use them effectively – Test Driven Development – A […]

Learning Ruby

Consider this example from the Programming Ruby book: class Account   attr_reader :balance       # accessor method ‘balance’   protected :balance         # and make it protected   def greaterBalanceThan(other)     return @balance > other.balance   end end Q:  How do I know that “other” is a type of Account?  Q:  Wouldn’t it be a lot clearer if you always declared the instance variables, so you could see at a glance what variables you have?  And while you […]

Learning Ruby

I’m starting to get into Ruby.  What a beautiful, clean, logical language (so far – I haven’t learned enough to know the trouble spots yet!).  Quite refreshing after C#.  I like the Programming Ruby book.  Great layout.  They start with a brief overview of the syntax, just so that the examples presented later on will […]