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

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 }
  • 3.times.do //something

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…

Related Articles:

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

This entry was posted in personal, ruby. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

One Response to Ruby, so easy a wife can do it

  1. jlockwood says:

    Preach it brother!