News for hackers. Stuff that matters.
Re:Is Ruby Dying? by sim0n on Tuesday December 24, 2013 @09:55AM (#6959541)
I personally haven't seen any new code being written in Perl during either my time in England or in the Bay Area. I don't really see a reason to use Perl when there are languages like Python and Ruby out there with easier learning curves and which are just as, if not more powerful (would be happy to learn some good reasons, though).
Re:Is Ruby Dying? by hahainternet on Tuesday December 24, 2013 @10:04AM (#6959580)
I am in Manchester. I write new Perl code. Python is Perl with a little nicer syntax and a shitload of baggage from overly opinionated people. Ruby is Perl with a little nicer syntax and no other advantages.

I have found no compelling reason to switch, and lots of annoyances that don't seem to exist in Perl.

Re:Is Ruby Dying? by Demiurge on Tuesday December 24, 2013 @10:29AM (#6959692)
Following this logic, every language is Perl with a bit of this or that. Perl was one of the first of the kind, but people saw obvious problems with it and so they innovated with 'little nicer syntax' or 'little better object system'. You might not want any of this, but you can't deny most people are happier with Python or Ruby.
Re:Is Ruby Dying? by aaronem on Thursday January 02, 2014 @03:48PM (#7002164)
I'd say it's more like Perl is every language with a bit of this or that. A sufficiently "skilled" Perl hacker can write everything from bad C, to bad Lisp, to bad Fortran, in Perl -- and most certainly can write plenty of bad Perl in Perl, too. It's writing good Perl that's hard.
Re:Is Ruby Dying? by hahainternet on Wednesday December 25, 2013 @02:16PM (#6963896)
You're not wrong, but I wrote that from my perspective, as someone who primarily writes Perl and needs a compelling reason to switch. Obviously someone who was writing code pre-Perl will probably see things a different way.
Re:Is Ruby Dying? by kamaal on Tuesday December 24, 2013 @11:01AM (#6959827)
This is true for all language that do things right the first time.

If you learn C well, everything else(C based languages) look the very same.

Perl enjoys that first movers advantage.

Re:Is Ruby Dying? by collyw on Wednesday December 25, 2013 @08:06AM (#6962925)
There was a talk by Guido Van Rossum effectively saying that Perl, Python and Ruby are the same language.
Re:Is Ruby Dying? by dasil003 on Tuesday December 24, 2013 @11:10AM (#6959874)
I'm actually a big fan of Perl, but your characterization of Ruby is wrong. Ruby is Perl with object-orientation first, nicer syntax is a minor detail after that.
Re:Is Ruby Dying? by hahainternet on Wednesday December 25, 2013 @02:17PM (#6963900)
It's the only major detail to me, because I can do the majority of what I would use in Ruby, in Perl. Nicer syntax is something I can't do though.
Re:Is Ruby Dying? by dasil003 on Thursday December 26, 2013 @10:02AM (#6966430)
If you can constrain yourself a reasonable OO system in Perl why can't you constrain yourself to a nice subset of the syntax?
Re:Is Ruby Dying? by hahainternet on Thursday December 26, 2013 @10:21AM (#6966489)
I can, I can deal with overly verbose maps or shifting variables off @_ but Ruby provides some similar features to Perl 6 right now. That is an advantage on its part. It's just not compelling enough to make me switch as Perl can do most of the rest just fine.
Re:Is Ruby Dying? by chromatic on Wednesday December 25, 2013 @04:04PM (#6964238)
See the CPAN module Moops.
Re:Is Ruby Dying? by hahainternet on Wednesday December 25, 2013 @06:39PM (#6964715)
I'm thinking more of things like the p6 arrow. Moops is part of the first part, things I can already do in Perl that are in Ruby.
Re:Is Ruby Dying? by lowmagnet on Tuesday December 24, 2013 @01:40PM (#6960557)
Ruby also now has a VM, which people may or may not find more useful. I for one prefer Ruby 1.9.x to 1.8.x.
Re:Is Ruby Dying? by ossdev1 on Tuesday December 24, 2013 @11:41AM (#6960036)
If Ruby has nice syntax then Smalltalk should be the syntax of the Gods ;)
Re:Is Ruby Dying? by orclev on Tuesday December 24, 2013 @02:00PM (#6960633)
The language of the Gods is clearly Lisp. Unfortunately it's such a pain to work in that most of the time the Gods just use Perl anyway. Oblig. XKCD: http://xkcd.com/224/
Re:Is Ruby Dying? by dasil003 on Tuesday December 24, 2013 @11:47AM (#6960066)
Remember we are comparing to Perl ;)
Re:Is Ruby Dying? by rubiquity on Tuesday December 24, 2013 @10:58AM (#6959819)
Having written some Python I agree. Having written a lot of Ruby I disagree.
Re:Is Ruby Dying? by delluminatus on Tuesday December 24, 2013 @11:11AM (#6959877)
Can you elaborate on Python's baggage? I'm simply curious.
Re:Is Ruby Dying? by hahainternet on Wednesday December 25, 2013 @02:19PM (#6963909)
I wouldn't characterise myself as any sort of expert so really I'm just talking about minor things like ternary operators, ugliness with super, scoping, the annoyance of PEP8 being overly specific etc. Just decisions taken for the sake of 'correctness' that end up being annoying.

Python isn't so bad, decorators and importing is all very swanky. I find that in general though things tend to be less elegant than intended but the delusion of perfection is maintained. I oppose Python's core philosophy and having used a bunch of Django, that also soured me a bit.

Re:Is Ruby Dying? by bmj on Tuesday December 24, 2013 @10:37AM (#6959726)
By this measure, C, or C++, or Ruby must be dead, since I've not seen any new code written in it during my 13 years in the industry.

That said, I suspect there are fewer people picking up Perl for the first time for a project these days. My experience with it has always been driven by some degree of "legacy"--someone on the team has experience with the language, and has leveraged CPAN to solve problems. Perl is still my go-to "glue" and tooling language, but that's just because what I know. Would Ruby work? Yeah, probably, but I've not found it to be worth it to learn that language yet.

Re:Is Ruby Dying? by sim0n on Tuesday December 24, 2013 @10:55AM (#6959803)
I see C and Ruby code being written every day in San Francisco.
Re:Is Ruby Dying? by bmj on Tuesday December 24, 2013 @11:49AM (#6960071)
So the bellwether of a language's health is whether it is being used in San Francisco?
Re:Is Ruby Dying? by orclev on Tuesday December 24, 2013 @02:05PM (#6960653)
To be fair I see C and C++ used all over the place. Pretty much any game out there has at worst a 50% chance of being written in C++. C is less common, but is still used quite extensively in the open source world. Most devices with firmware are written in C (or at least their drivers are).
Re:Is Ruby Dying? by smonff on Wednesday December 25, 2013 @09:34AM (#6963050)
Just ask http://www.builtinperl.com/ for the reasons why. For exemple don't you know that DuckDuckGo is using a lot of Perl ?

Another one, that is huge : YouPorn (itself) is using Catalyst. YOU-PORN!

In my opinion, the main Perl's strength is the cpan.org :

  Stop reinventing wheels, start building space rockets
  
  The Comprehensive Perl Archive Network (CPAN) 
  currently has 128,529 Perl modules in 28,883
  distributions, written by 11,129 authors, 
  mirrored on 266 servers.
  
  The archive has been online since October 
  1995 and is constantly growing.
Re:Is Ruby Dying? by Mic92 on Wednesday December 25, 2013 @12:35PM (#6963526)
Actually youporn, rewrote all their code in PHP:

http://highscalability.com/blog/2012/4/2/youporn-targeting-2...

Re:Is Ruby Dying? by smonff on Wednesday December 25, 2013 @08:30PM (#6964943)
Damned ! Here is an information that should be uploaded to Wikipedia.
Re:Is Ruby Dying? by kamaal on Tuesday December 24, 2013 @11:31AM (#6959988)
>>easier learning curves and which are just as, if not more powerful (would be happy to learn some good reasons, though).

This may be true for Ruby to some extent.

But Python as a design goal aims to provide as little power to the programmer as possible. In fact, the Zen of Python says almost anything that comes in the way should and must be sacrificed to achieve readability.

One can probably write a book on why one must use Perl. In short, nothing really gets work done as Perl does. That one fact hasn't changed since the past 26 years of Perl's existence.

Re:Is Ruby Dying? by elbear on Tuesday December 24, 2013 @12:06PM (#6960133)
What does power represent to you? Simplicity and readability offer power as far as I'm concerned.
Re:Is Ruby Dying? by collyw on Wednesday December 25, 2013 @08:02AM (#6962921)
Just because Perl can parse line noise, doesn't mean you can't write readable code. I have seen very unreadable code in Python.
Re:Is Ruby Dying? by kamaal on Tuesday December 24, 2013 @12:35PM (#6960242)
In that case Assembly language programming should be sufficient right? That's as simple and readable as it can get.
Re:Is Ruby Dying? by lowmagnet on Tuesday December 24, 2013 @01:56PM (#6960607)
Except for the cognitive load you have to keep in your head.