Live data from Hacker News

Ask HN: What makes Ruby so great?

news.ycombinator.com

11–13 of 13 posts

Re: Ask HN: What makes Ruby so great?

#11
post #5

From the perspective of someone who is looking for a first programming language or a language that is dead simple to use for basic tasks, I think Ruby is a great choice. I think this is primarily because the syntax can be very intuitive, especially compared to something like perl. Ruby code is generally readable even to someone who doesn't know Ruby (there are some exceptions of course, as Ruby can be very terse in t…

Ruby code is generally readable even to someone who doesn't know Ruby.... I hear this claim often about many languages. I'd like to see some sort of proof, as well as some explanation of why that should matter.

" ... as well as some explanation of why that should matter."

It doesn't.

I've heard the same thing, or some variation ("It's executable pseudo-code!"), and thought it a useful indicator of some intangible but important goodness, but it doesn't hold up.

Look at Haskell. (No, really, you won't go blind. ) Few people are going to claim it's generally readable to the uninitiated, but so what? So is French, for a lot of people. The thing is, if you think it would be useful, you learn it, and at that point the value of "readable to people who haven't learned it" goes to nil.

You could argue that some languages (maybe Haskell) maintain a level of inscrutability for a long time as you are learning; you continue to spend too much time decoding text when you could be zipping along with some reads-just-like-English language.

But that's a different issue. "Difficult to obtain proficiency" is not the same as "intelligible to outsiders", and concerns different value to the programmer. Plus, the cost of proficiency needs to be weighed against the return on effort. (Consider Vim or Emacs. Worth the effort to learn? An awful lot of people seem to think so.)

It may take longer to become proficient in (say) Haskell than in Ruby, but the long term payoff may be that you become far more efficient, with your code being far more concise.

There's a difference between BASIC and Brainfuck, and some language comparisons are just apples and oranges, but the value of being easy or readable to newbies or outsiders is largely tied to the value of being a newbie or an outsider. Once you are neither you really need your language to have other strengths.

(Which certainly Ruby has, and its those strengths people should use to sell it.)

Re: Ask HN: What makes Ruby so great?

#13
post #4

Spend a week learning it and see what you think. Play with the metaprogramming, runtime code creation, and dynamic method invocation, and see if it floats your boat. (Try this article I wrote for DevX: http://www.devx.com/RubySpecialReport/Article/34502 I tried to give an example that would show off some of the nicer things in Ruby.) After trying the language, if you don't like it, don't use it, and stop reading Ruby…

Thanks, you are very straight forward. I was assuming I would get a lot of people flaming this because Ruby is like "their first high school crush", but was wrong. Do you have another link to your article? I'd like to read it, but the site wants me to register. I'm not down with that. Thanks James

Re my other comment: Also ran into the odd sign-in required, so I decided to just host the article myself:

http://www.neurogami.com/articles/10_minutes_to_your_first_R...

Post reply on HN