1,105,633 Community Members

Reasons to learn Ruby

Member Avatar
Junior Poster in Training
84 posts since Aug 2007
Reputation Points: 5 [?]
Q&As Helped to Solve: 17 [?]
Skill Endorsements: 0 [?]

Hi All

I am looking for a new language to learn and add to my language set that already contains PHP & C# in much depth. Ruby is one language i was thinking of learning.

Can you guys please give me practical uses and/or applications that use/may use Ruby.
I believe knowing this before learning it will surely give me some inspiration and direction when i begin my Ruby lessons.


Member Avatar
Junior Poster in Training
74 posts since Aug 2010
Reputation Points: 7 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]

-- Brilliant community (check out ruby forums)
-- The code imo looks really nice, and there are alot of very helpful functions built in.

For example i was writing a script that would get the first day of the week and last day of the week.

In PHP i eventually managed to cut it down to 7 lines which is not bad at all.

In ruby I can just do this, 4 lines if you include the space :)

require 'active_support'

start_of_week = at_the_beginning_of_week
end_of_week = at_end_of_week

There are also many more functions that save you time like this

check out active support documentation

Member Avatar
Veteran Poster
1,041 posts since Aug 2008
Reputation Points: 483 [?]
Q&As Helped to Solve: 382 [?]
Skill Endorsements: 10 [?]

in ruby everything is an object, unlike Python where the primitives are, well, primitive

Maybe you should look thing up before you talk.

Everything in Python is an object, and almost everything has attributes and methods. All functions have a built-in attribute doc, which returns the doc string defined in the function's source code. The sys module is an object which has (among other things) an attribute called path. And so forth.

As with Python, in Ruby,... Everything is an object
So there you have it from Ruby's own website: in Python everything is an object


Question Answered as of 3 Years Ago by snippsat and benjaminFowl87
This question has already been solved: Start a new discussion instead
Start New Discussion
View similar articles that have also been tagged: