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|
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.