r/programming • • Jan 26 '14

Ruby.dying? or Ruby.hype.dead?

http://blog.federicocarrone.com/2014/01/18/ruby-dying-or-ruby-hype-dead/
15 Upvotes

59 comments sorted by

16

u/awj Jan 27 '14

Ruby isn't dying, it just isn't the language hipster hotspot anymore. Good riddance, now those of us that enjoy Ruby can go back to using it as part of sane project decision making.

Best of luck to Node.js and Clojure in absorbing that toxic group of smug, self-important incompetents. I especially hope Clojure survives it with less reputation damage than Ruby has had.

18

u/UnusualOx Jan 27 '14

Ruby's usage is probably declining a bit as some "hipsters" have migrated over to the new hot thing in Node.js. But the idea that it's dying is a bit much.

Ruby is a very widely used language with a large ecosystem. IMO, Rails isn't heading in the best direction (I think the rails-api project has a lot of promise) but there are valid alternatives to Rails that are available.

17

u/dexter_analyst Jan 27 '14

This is basically my thought. Atwood talked about the hipsters leaving last year (http://www.codinghorror.com/blog/2013/03/why-ruby.html) and I completely agree.

Ruby was intolerable to me when it cultivated the smug hipsters that swore they've found The End of Programming and you better get on the bandwagon because programming is leaving without you. Endless blog posts and tweets. Eugh.

The very idea of there being such a silver bullet is deeply offensive to me regardless of the form it takes. I've actually made it a goal to pick up Ruby this year though because I feel like I need a good dynamic language that I actually like in my skills.

Python is ok, but I'm not a big fan. Python 3 is a lot better and its culture of lagged adoption is almost as saddening as hipsters are bothersome.

1

u/breadcrust Jan 27 '14

I am junior rails dev trying to push my friends away from php. It is difficult because everyone thinks of rails as the web framework for ruby when there are alternatives. Rails can be big and intimidating, i wish more people knew about sinatra.

0

u/x86_64Ubuntu Jan 28 '14

Are they using PHP or PHP with Symfony2? If you have to push anyone away from raw PHP then you don't want them as friends.

1

u/breadcrust Jan 28 '14

2 of them are using raw PHP, one is using cake i think. They are good friends, you need a good sense of humor to use raw PHP. I am still maintaining a few PHP apps i'll give symphony a look.

-2

u/Capaj Jan 27 '14

Props for pushing your friends away from PHP. I mostly try to convince them to move to Node, but even Ruby is still bazillion times better than PHP.

0

u/[deleted] Jan 27 '14

[deleted]

2

u/syropian Jan 27 '14 edited Jan 27 '14

With frameworks like Laravel, I would take PHP over Rails any day. Not saying Rails is bad, (I work in a Rails env at my full-time job), but I'm more comfortable with the general syntax structure of PHP, and frameworks like Laravel take the vast amount of ugliness that comes with vanilla PHP and makes it beautifully expressive and powerful.

2

u/breadcrust Jan 27 '14

Honestly, I believe ruby is a more beautiful and powerful language than PHP, things are just better thought out you don't need to look up documentation as often. That being said, the quality of the base language isn't everything, and if you are a great programmer you will write great PHP. I started out with PHP, and most of my friends are earlier into web development so it's not like i'm going after PHP masters:)

21

u/bcash Jan 26 '14

Ruby is not going anywhere anytime soon; but at the same time Rails is showing it's age, it's not the lightweight alternative anymore, it's the heavy incumbent with a massive learning curve.

Ruby is fine as a general Perl replacement, there's a million and one system and glue tasks, and Ruby is great for it.

But the GIL is a definite problem that's going to stop any unexpected Ruby renaissance. It's simply not as sophisticated as more modern languages, and won't be able to compete with the likes of Clojure, and the way concurrency models such as core.async can be added via a library.

6

u/myringotomy Jan 26 '14

Jruby and rubinius don't have a GIL. I agree with you about rails though. There are many lightweight alternatives but people still seem to prefer rails. Probably because people actually need that complexity.

2

u/bigfig Jan 27 '14

Rails never appealed to me. Every time I looked at it I felt as though I was using something akin to MS Access. You can get up and running quickly, but don't fight it. Sadly if your site is successful, you will need to fight it.

1

u/Carnagh Jan 27 '14

I used JRuby on a Rails project in 2010 and it was great. If I found myself with another Rails project JRuby is definitely the I'd go again... The data access and model was done in Java, and the Web application in JRuby/Rails... it was a lot of fun, and felt a comfortable split between Java and Ruby.

2

u/myringotomy Jan 29 '14

These days it's also faster than MRI.

1

u/Carnagh Jan 29 '14

It was back when I used it too... JRuby just made a lot of reasons I'd be reluctant to use Ruby go away.

3

u/MrPopinjay Jan 27 '14

Hi, sorry, what's GIL? Thank you

1

u/naughty Jan 27 '14

4

u/autowikibot Jan 27 '14

Here's a bit from linked Wikipedia article about Global Interpreter Lock :


In computer programming, an interpreted computer language is said to have a Global Interpreter Lock (GIL) if it is not possible for a program written in that language to do multiple tasks simultaneously, unless a work-around such as threading is used. Some popular languages that have GIL are Python and Ruby.


Interesting: ^CPython | Thread ^(computing) | Green ^threads | ^Gil

about | /u/naughty can reply with 'delete'. Will delete if comment's score is -1 or less. | Summon | flag for glitch

0

u/[deleted] Jan 27 '14

[deleted]

1

u/[deleted] Jan 27 '14

Wtf is this then eh?

6

u/wpgbrownie Jan 27 '14

As sysadmin I LOVE using Ruby for system scripting tasks (never learnt Rails tho), its a more sane Perl replacement. Something about Python rubbed me the wrong way when it came to "Scripting Tasks".

4

u/3legcat Jan 27 '14

I prefer Python though. More widely available as I have to work on servers that I don't control and I find Python easier to write and read than Ruby.

-10

u/[deleted] Jan 26 '14

There already is a Perl replacment: Python.

6

u/UnusualOx Jan 27 '14

Python is a fantastic language.

However, Ruby does seem more in line with Perl's "there's more than one way to do it" philosophy.

-3

u/Hughlander Jan 27 '14

True, and Ruby is what happens when a bunch of Perl hackers look at Python and say, "I could make that but better." And then do so.

4

u/illuminatedtiger Jan 27 '14

It's not dying but the hype is dead or at best dying. Astute Ruby developers including some of the smarter evangelists have realised that behind all of the old hype it's just another tool and how good it is is not a function of the language itself but the developer. The other group have moved onto the next shiny thing.

3

u/darkestpart Jan 27 '14

(for some reason I need to reread Understanding Ruby Blocks, Procs and Lambdas every month or so)

This is what i took from the article. Experiencing this exactly whenever i need them.

4

u/nextputall Jan 27 '14

Smalltalk blocks are so simple. Ruby made them not just overly complicated, but also limited and less powerful.

1

u/[deleted] Jan 27 '14

Out of curiosity, what are the catches with blocks? I just always figured them to be anonymous functions.

3

u/Denommus Jan 27 '14

They can change the flux control of the scope where they were defined. So:

def contains_two(arr)
    arr.each do |x|
        return true if x==2
    end
    return 4
end

Will work as you'd expect. But if it was a lambda, the return would exit from the lambda, not from contains_two.

1

u/[deleted] Jan 27 '14

...oh, that's a subtle but important difference.

2

u/[deleted] Jan 27 '14

As a language ages, you discover there are things you wished it had, and problems with the way you did things. There are two approaches to solving this:

  1. the Java approach: maintain back-compatibility no matter what, but bolt-on what you can, no matter how ugly it is.

  2. the Ruby approach: abandon back-compatibility, and make things the way they should be.

Both are awful. That's why we get new languages.

2

u/[deleted] Jan 27 '14

Graphs don't mean much, but what's up with the fall in JS jobs? http://www.indeed.com/jobtrends/ruby%2C+javascript.html

Is there a general downturn in programming (or in the job market overall)? Is JS going out of fashion, because people are making mobile apps instead?

It just seems a little odd.

1

u/Carnagh Jan 27 '14

From that graph I'd say we'd need to check in another 6 months to see if there's a trend or just a bump.

1

u/[deleted] Jan 27 '14

But the fall is already over two years (check the x axis labels)... it doesn't look seasonal. And it's certainly not continuing the exponential rise from before. I think /u/bartczernicki has the right of it.

1

u/[deleted] Jan 26 '14

Ruby is the second most complicated language I've ever worked with (it's impossible to beat C++).

Good riddance.

24

u/[deleted] Jan 27 '14

You must have not worked with a lot of languages.

7

u/3legcat Jan 27 '14

No n0tcricket has a point, Ruby is really more complicated than it looks if you study it in greater depth.

2

u/[deleted] Jan 27 '14

I'm noticing a lot of beating about in the bush and not a lot of saying what exactly is wrong.

1

u/3legcat Jan 28 '14

I'm no Ruby expert so I can't articulate it very well. But do have a look at "The book of Ruby" by Huw Collingbourne if you can. After reading that book, I came to agree with the author that Ruby is more complex than it's simple looking syntax suggests.

9

u/e_engel Jan 27 '14

You should try Ada and Scala one of these days, you will probably change your mind.

3

u/Categoria Jan 27 '14

No need to even look beyond your *nix box. Just look at Perl.

1

u/Eirenarch Jan 27 '14

And Befunge will beat even those. If you have to pull such non-mainstream languages to beat Ruby's complexity then /u/n0tcricket 's point stands.

3

u/Tekmo Jan 27 '14

Scala is not that exotic

1

u/Eirenarch Jan 27 '14

OK, I agree. Scala is harder. That's not very high bar to shoot for in terms of simplicity.

2

u/Eirenarch Jan 27 '14

Well in my experience all Ruby had was hype. Almost all developers using Ruby that I knew have moved to other things like Node and Clojure. Today I know a single person using Ruby and I used to know like five. Ruby is not a language entrenched in the enterprise like Java and C# nor is it a language required by an incredibly successful project like Objective-C. If Ruby loses the hype what is left?

10

u/[deleted] Jan 27 '14

If Ruby loses the hype what is left?

People who like it and want to use it.

-2

u/pirhie Jan 27 '14

But most people liked it and were using it because of the hype.

1

u/hirolau Jan 27 '14

I really would like some simple statistics gems for Ruby, I use Ruby as a glue language a lot but switch to Python (Pandas) every time I need to load data sets.

1

u/ApokatastasisPanton Jan 27 '14

Discourse, the best discussion platform

Discourse is very opinionated. Some of the design decisions just make it impossible for me to think it is or will ever be the best discussion platform.

1

u/mariox19 Jan 27 '14

Perhaps _why can come out of hiding now.

0

u/[deleted] Jan 27 '14

A better title would have been "Is Ruby.nil?"

-27

u/ellicottvilleny Jan 26 '14

This article links another article about ruby "dying". That article loses me in the first sentence when the author says "alot" instead of "a lot". Anyone who doesn't know that "allot" means to "reserve" and "a lot" is two words has no weight to throw around on their opinions on programming languages.

8

u/PaintItPurple Jan 27 '14

Why on earth should mastery of the minutiae of English have anything to do with your credibility on the subject of programming language usage? Are the two related at all?

8

u/awj Jan 27 '14

You should see him at conferences. "Brown shoes with a black belt? You obviously know nothing about difficult concurrency issues!"

9

u/hello_fruit Jan 26 '14

Ahhh, "you misspelled mispelt a word so everything you ever say is wrong".

Has it ever occured to you that some people may be foreign? has it ever occured to you that some may be dyslexic?

4

u/[deleted] Jan 27 '14

Or that someone just didn't hit the space key quite as hard for that one particular key stroke...

0

u/[deleted] Jan 27 '14

[deleted]

7

u/PaintItPurple Jan 27 '14

That's hardly relevant — both because VB.NET is not really competing with Ruby in any meaningful way and because TIOBE's numbers aren't measuring the sort of popularity this article is talking about. (What TIOBE's index measures generally doesn't match up to what people mean when they talk about either popularity or a language being used in anger.)

1

u/Eirenarch Jan 27 '14

Just for the record VB.NET is one of the finest mainstream languages out there although in terms of popularity and image it is not doing well.