2007
12.28

I just started learning Ruby, with a lot of egging by my brother. And these are my first baby steps in the world of Ruby :)

puts "Hello, World!"

Yup, that is a Hello World code in Ruby. No main methods, semi-colons, or returns.
Ruby is a type-less, dynamically typed language.

Duck-typing As coined by Alex Martelli : “If it walks like a duck and quacks like a duck, I would call it a duck.

We are more concerned with the aspects and methods of the object than the type of the objects. In Ruby, I will create a function, and accept an object and send messages to it. If that object does not have the above methods, then a run-time error will occur.

Nice Huh?

3 comments so far

Add Your Comment
  1. Hmm… No new updates on Ruby as yet ?

  2. Ruby sure is quick. I have been trying to get my hands dirty with Ruby as well. Do let me know about your experiences with it.

    Tarun

  3. Oh! Wonderful job!
    Very good and useful post.
    Thx, your blog in my Google reader now
    We’ll expect many new interesting posts from you ;)

IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 2 + 8 ?
Please leave these two fields as-is: