Life Beyond Code

Ruby Fobia

Posted on: January 12, 2007

Now a days, For my fun job, i am learning How to Play with RUBY and RUBY on Rails. I can not describe properly in words how passionate i am about this language but let me try.

“if this is the Real RUBY, I believe IT WILL RULE ONE DAY”

Some one of you will agree with me that Ruby doesnt seem a computer language, it seems as we are reading Plain English essay . Let me give you an example

 

def sampleFunction

10.times do |num|

square = num * num

return num, square if num > 5

end

end

num, square = sampleFunction

puts num

puts square

You can see a simple Ruby program above.  sampleFunction is  a method. now look on Bold text in above program and tell me how cool it looks ,  Let me describe you above three bold sentences in Plain English.

– Ten Times do something with num.

– return num and square if num is greater than 5

– put in num and square the return values from sampleFunction

RUBY code is almost a copy of my Plain English description above.

Hundreds of other examples, but its time now to explore yourself.

: ENJOY another DYNAMIC TYPED Language.

I know I am going to LOVE this Language.

One of nice  tutorials on Ruby for Starters is  A very short Tutorial On Ruby

 

Cheers.

Advertisements

2 Responses to "Ruby Fobia"

Thanks for the compliments wrt my Learning Ruby tutorial. Can you change the URL to http://rubylearning.com/ ? I have now my own domain where I am shifting the entire tutorial. Do let me know when done. Thanks once again.

Sure thing. I am updating this post.

Regards,
Usman

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Calendar

January 2007
M T W T F S S
« Sep   Feb »
1234567
891011121314
15161718192021
22232425262728
293031  

My del.icio.us

RSS Readings

  • An error has occurred; the feed is probably down. Try again later.

And Here is ME...

Sand Play - at Budva Beach (Montenegro)

My friends - Salman, Michal, Imre

Teradata Team Dinner, ProMonte Project, Montenegro (Imre, Viladimir, Danial)

More Photos

Top Clicks

  • None
%d bloggers like this: