Ruby, so easy a wife can do it

I just have to share this.  So my wife asks me why I’m learning this new thing called Ruby.  She’s usually not interested in the specifics of the programming languages I use.  (A few years ago, she asked me, “what’s that C-Pound book you’re reading?”  🙂

So I broke out a pen and paper and wrote these 2 lines:

  • DateTime.Now.AddHours(1)
    • 1.hour.from_now</ul> I asked her which one did she think was easier to understand.  She said “obviously, the 2nd one”.  Bingo!

    Then I wrote her another couple of lines:

    • for (int i=0; i<=3; i++) { // do something }
      • //something</ul> Same question and she pointed at the first one in disgust and again said the 2nd was much easier to write.  Then she asked me why I’m not doing everything using the 2nd one.  Sadly, I couldn’t really come with a good answer to that one except to say that it’s just now gaining traction (even though it’s been around for long time), it’s open source, it doesn’t come from Microsoft, blah blah.

      Needless to say, the fact that my wife is telling me I need to start using Ruby more is definitely a sign.  Just not sure of what it’s a sign of…

Agile Web Development with Rails – Chapter 3