Mar 21, 2007 @ 07:10 am

Think of all the things in ruby that impressed you when you first start using it and try to remember the one that won your heart. It doesn’t has to be a key concept or a complex principle. A simple twist in the syntax that had you say “Wow… I love this!” could do.

To me, the Integer times method is that thing.

Loops like 3.times{puts “dum “} simply blow my mind by their readability. At that time I was wondering how this thing could work since I didn’t know about code blocks, but it still was a real pleasure to my eyes nonetheless. The times method might not be the end of the world, but it’s simple things like that that help me remember why I’m a proud rubyist.

What is the one thing with Ruby that won you ?

Bookmark this post : These icons link to social bookmarking sites where readers can share and discover new web pages.
  • DZone
  • Reddit
  • del.icio.us
  • Digg
  • Furl
  • Technorati
  • StumbleUpon
Rate this post :
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Posted under : Easy reading
4 Comments
MyAvatars 0.2

readability, same as you

class Post

Comment by : Peter
— March 29, 2007 @ 4:37 pm

MyAvatars 0.2

I’m still learning Ruby, so the thing that grabbed me is still fresh in my memory: code blocks - so simple, yet so powerful!

Comment by : SD
— March 30, 2007 @ 7:23 am

MyAvatars 0.2

find :all

Comment by : IceskYsl
— May 17, 2007 @ 1:48 am

MyAvatars 0.2

Heh. find :all is a Railsism. Technically it’s still Ruby but it’s not part of the official package.

Me? I got hooked when I discovered the grace and power of Enumerable. Enumerable#collect has been a lifesaver. No more creating empty arrays/hashes then iterating over another array/hash and sending the results to the empty one!

Comment by : RSL
— May 28, 2007 @ 9:02 am




Leave a comment
Name (required)
Email (will not be publish) (required)
Website