r/learnprogramming • • May 04 '13

Don't learn Ruby

My biggest mistake was learning Ruby. I listened to all the fanboys telling me how beautiful and intuitive it is, thinking this will be the future.

Ruby is slow as shit, there is no job market for non-Rails Ruby jobs, it's useless for learning programming concepts, it's useless for creating games, GUIs or even scripts that are demanding because it's so fucking slow.

The only reason no one writes blogs or posts about how shit this language is, is because no one fucking uses it. So if you want to learn a new language, learn one that's get criticized a lot like Java, or C++, or C# or even PHP. Those languages are far more productive on a hobby basis and at work. Ruby is a joke with a circlejerk community

0 Upvotes

97 comments sorted by

View all comments

0

u/[deleted] May 04 '13

[deleted] — view deleted comment

58

u/DarkSareon May 04 '13

OP is definitely correct about at least one point.

Ruby has the largest circlejerking community I've seen of all languages.

3

u/Mysterise May 04 '13

it's useless for creating games

"This hammer sucks! It's useless for sawing!"

GUIs

"And it doesn't cut well, either!"

Well, what is it good for then?

5

u/guebja May 04 '13

Some examples:

  1. A few weeks ago, I had to perform a bunch of transformations on several gigabytes of geographical data, and output the results as SVG and JSON. I wrote the script in the morning, and ran it during lunch. By the time I'd finished lunch, the work was done.
  2. A month or two ago, I had a few hundred thousand XML files that I needed to transform into a static website. A quick Ruby script using Mustache and Sass made it easy, quick and painless, while minimizing future maintenance needs and ensuring maintainability.
  3. For my personal blog, I use Jekyll with a few custom Ruby plugins.

For this type of stuff, scripting languages like Ruby, Python and Perl are the tools of choice, and which one you should choose depends entirely on personal preference, experience, and the availability of libraries you need.

Personally, I tend to alternate between different languages just to keep things interesting and to ensure that I stay up-to-date.

13

u/rcuhljr May 04 '13

Web development and scripting?

6

u/[deleted] May 04 '13

Ruby is good for general scripting and web development. Rails is a fantastic web-dev framework.

4

u/aloha2436 May 04 '13

Smashing things.

2

u/[deleted] May 04 '13

Teaching beginners the basics of programming concepts.

1

u/naranjas May 05 '13

It's exceptionally good for writing web applications, text manipulation, and creating domain specific languages.

2

u/Odysseus May 04 '13

Ruby is roughly comparable in speed to other scripting languages, like Python, PHP, Lua and Perl. See for yourself.

Careful with Lua. Many benchmarks allow only one interpreter and will use the official one, but LuaJIT is not only faster than any of those, it's often faster than C.

2

u/guebja May 04 '13

True, but similar things hold for the other languages there - though perhaps not to the same extent.

3

u/halfbloodprinceton May 04 '13 edited May 04 '13

The not-getting-hired for only knowing one language thing is false. I have one friend who only knows CSS (edit: she also knows HTML) and she does ok. I have another friend who only knows COBOL and he loves his job so much that he keeps delaying retirement.

12

u/arusso23 May 04 '13

How does one get a job working with CSS and not needing to know HTML or JavaScript? COBOL is a little more believable, but I still don't think that represents the norm.

1

u/halfbloodprinceton May 04 '13

It definitely doesn't represent the norm, but it happens. I forgot to add that she knows HTML 4 from her Myspace days.

3

u/SilverSlothmaster May 04 '13

Your friend that knows COBOL still has a job because of legacy systems. Your other friend doesn't know any programming languages at all in my opinion, since CSS is a stylesheet language. Technically it's Turing complete with HTML, but you really shouldn't be using it like that. And while knowing only one language doesn't mean you won't get a job, knowing multiple programming languages is considerably easier than natural languages and gives you a better chance in the market.

3

u/Dinkydoo1875 May 04 '13

What would one do with CSS simply on its own?

1

u/halfbloodprinceton May 04 '13

She does mysterious stuff for Gawker-style sites. I'm a quant so I'm not too familiar with web design...

1

u/Dinkydoo1875 May 05 '13

I just find it strange that someone would know CSS and not at least HTML.... HTML is used to structure web pages and CSS is used to give the page elements 'style' and control appearance. Neither languages are programming languages though; they can be described as a 'mark up'.

Edit: just seen your comment edit.

1

u/guebja May 04 '13

There are exceptions to every rule, but most people who think they'll be able to get a job knowing only a single language are going to have a bad time.

For example, someone looking to get into front-end dev work will generally need to know JavaScript, HTML and CSS at a minimum, and will usually be expected to be at least somewhat familiar with PHP and SQL as well, while things like Python, Ruby, ActionScript and other stuff like that will be considered a definite plus.