Sunday, March 23, 2008

Ruby is more object oriented than Java!

This simple example proves that Ruby is more object oriented than java.

To find absolute of a number,

in Java we need to use a separate class - Math.abs(-24)

but,

in Ruby abs functionality is built in the number - -24.abs

3 comments:

Anand said...

Yes. I used Ruby on Rails to develop a sample application. I felt its improved oo features.

Is there is any large scale application running in ruby?

Siva Jagadeesan said...

Twitter is one I can think of

Siva Jagadeesan said...

And also http://www.penny-arcade.com/ and Basecamp by 37 signals