Ruby readability

May 31, 2007

Ruby is said to be a programming language written FOR programmers, i.e. it is supposed to be readable than say C# and definitely more readable than Python.

However, I think it struggles at that even at the basic levels. For example, the each iterator:

car = ['Chrysler 300C', 'Volvo 740', 'Mini Cooper']
car.each do |c|
    puts c
end

I mean, the “|c|” thing? The first time I read that I didn’t really understand it. Somehow, it doesn’t feel very natural. “car.each do on c” would be more logical. Not to mention that the verb “puts” means writing it out to your console…

Well, I’m just a newbie at Ruby so far, maybe there’s a lot to it that I haven’t understood just yet.

One Response to “Ruby readability”

  1. Jeff Says:

    I find C# to be 10 times more readable than Ruby, and of course Delphi to be more readable than C#. I’ve been working with Ruby lately and I find it confusing and too complicated. It’s like its simplified down to a point of greater complication.


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

%d bloggers like this: