Perl is the Most Hated Programming Language, Developers Say (theregister.co.uk)
Thomas Claburn, writing for The Register: Developers really dislike Perl, and projects associated with Microsoft, at least among those who volunteer their views through Stack Overflow. The community coding site offers programmers a way to document their technical affinities on their developer story profile pages. Included therein is an input box for tech they'd prefer to avoid. For developers who have chosen to provide testaments of loathing, Perl tops the list of disliked programming languages, followed by Delphi and VBA. The yardstick here consists of the ratio of "likes" and "dislikes" listed in developer story profiles; to merit chart position, the topic or tag in question had to show up in at least 2,000 stories. Further down the down the list of unloved programming language comes PHP, Objective-C, CoffeeScript, and Ruby. In a blog post seen by The Register ahead of its publication today, Stack Overflow data scientist David Robinson said usually there's a relationship between how fast a particular tag is growing and how often it's disliked. "Almost everything disliked by more than 3 per cent of Stories mentioning it is shrinking in Stack Overflow traffic (except for the quite polarizing VBA, which is steady or slightly growing)," said Robinson. "And the least-disliked tags -- R, Rust, TypeScript and Kotlin -- are all among the fast-growing tags (TypeScript and Kotlin growing so quickly they had to be truncated in the plot)."
Perl is easy to write, hard to write well.
Sort of like death metal.
It is hated because you have to use independent thought, and have quality of thought, to deliver anything but flaky gibberish.
At the same time, you can do anything with it, and across multiple platforms especially, it is the fastest way to get anything done.
So eat it, Stack Overflow commenters. You're just people googling your way to a paycheck anyway.
Alternative Right.
The CPAN library system is mature, it has ports on a ridiculous number of platforms, and the syntax isn't even particularly awful. If anything, its curse is (anecdotally) that it's everywhere and new-to-perl developers run across old code all the time and struggle to figure out the system it backs. And the fact that perl hacks had (have?) a bad habit of becoming defacto production code.
Why hate, why not dislike. I have been coding for 40 years and never came across a language I hated, just ones that weren't suited for the job. Hey, if the company is going to pay me $75 an hour to code I'll write the app in Sanskrit if they want me to.
Having worked in Perl (and many other languages) for about 15 years now, I'm curious how many of those polled actually use Perl regularly.
Whenever I have to introduce someone to my Perl scripts, their first reaction is usually the typical horror, which fades in a few days after they start using it. Yes, there are comments. Yes, there is decent design. No, the regular expressions are not worse than any other implementation. No, the "clever" one-liner you copied off of a PerlMonks golf challenge will not pass review.
Sure, there are a few weird warts on the language ("bless" being the most obvious example), but it's no worse than any other, and significantly better than some of today's much more popular languages. Mostly, I find that Perl just has a bad reputation because it allows you to write ugly code, just like C allows you to corrupt data and Java allows you to consume obscene amounts of memory. The language choice does not excuse being a bad programmer.
You do not have a moral or legal right to do absolutely anything you want.
What's wrong with Ruby? I find it a bit weird, but not hate-worthy. Perl I find unreadable, along the lines of FORTH. A write-only language.
Perl is a wacky language and only bareable if you can handle old school unix stunts, no doubt. It gave birth to PHP, which speaks volumes. I remember reading an OReilly introduction to Perl and laughing at the wackyness. I've done the same with PHP, but I've always respected both. Sort of.
Unlike newfangled fads and desasters like Ruby, Perl is a language that remains usable. Books on Perl from 18 years ago are still valid today, just like with awk, TCL and Emacs Lisp.
Complain all you want about the awkwardness of old-school languages - they still work and many of them run on just about anything that can be powered by electricity. These days I'm still a little reluctant to say which side Javascript will come up on now that Node has it's very own version hodgepodge gumming up the works.
We suffer more in our imagination than in reality. - Seneca
Those people like, and those people use.
Funny, I quite enjoyed writing in Perl 5 and the feeling was empowerment, and the community was excellent. At the time Python was quite immature. Python has grown but Perl 5 is still quite useful.
There is also quite a difference between legacy code and code written today using modern extensions, though it seems people enjoy trashing things, instead of admitting they did not actually learn it.
I find it really amusing that many of the people who like to hate PHP are the same people who gleefully jumped on board the Node.js bandwagon.
JavaScript and PHP came onto the scene at a similar time, and many of the worst problems are shared between them.
Both languages have evolved since then, and particularly in recent years, and both are now significantly more mature, robust and well-rounded languages. They both do still have serious issues, but it is possible today (even commonplace) to write good quality, well structured and maintainable code in either of them.
There are good reasons to still dislike PHP, but hating it today is irrational. If you still hate PHP today, I challenge you to re-examine the modern PHP ecosystem and some modern PHP code and understand how the language has changed. Then justify your hatred by pointing out issues that you have with PHP that are still there. Yes, there are some, but other languages have their issues too. I honestly believe that PHP has come right now.
Yeah, but once you've been working in a field for a few months, you're no longer a layman. It's easier for a layman to use a Veg-O-Matic than a chef's knife, but anyone who works in the restaurant industry would pick the latter tool.
A computer works using a set of mathematical logic operations. There's no need to dress them up to look like fancy talkin'.
> But the only language I learned to actually hate is Javascript. Talk about a steaming pile of shit.
That's because Brendan was a fucking idiot. JavaShit was designed and implemented in 10 days -- which would be impressive if he actually put some _thought_ in it. In contradistinction it was like almost every shitty thing about Basic was embraced and NOTHING about writing type safe programs from the past 40 years was used.
* Accidentally misspell a variable? That's nice -- we will just magically use it! Undefined FTW.
* Want misspelt variables to be flagged at run-time? Use the hack magic string
* Want to turn it off? Nope, sorry, no can do.
* Want to include files? Bwuahaha. What do you think this is? A programming language?
* Arrays and Strings are half-assed. What would you _think_ the result of
should be? There are 3 possibilities:
1. [4,6] = Vector or Matrix addition
2. [1,2,3,4] = Array concatenation, aka [1,2].concat( [3,4] );
3. undefined = Exception thrown for mixing types
So what does JavaShit do? It uses an idiotic 4th choice!
4. "1,23,4" = String Concatenation WTF!?
More examples of how fucked up JavaShit is
Both JavaShit (JS) and PHucked Up (PHP) languages were designed by morons. At least other languages have _some_ sanity.
At least ES5 doesn't suck (as much).
C sucks at string handling. Thus perl.
I love perl. What I don't love is the deliberately obfuscated perl written by someone trying to be clever and/or indispensible by writing code only they can (quickly) understand. A quick down-and-dirty perl script is one thing, using it in reusable scripts is just immature and pointless. Especially those who refuse to document their code.
THAT is the part I detest.
As is often the case your doing it wrong.
if you are having problems with Perl being updated when your server updates you are probably using the Perl that was installed as part of your system to run your app.
Perlbrew now makes it simple to run an independent Perl for a single user/service that only updates when you tell it to.
What you describe is no different than if your app uses a c runtime library that is over written by the system during an update.
My experience with the Perl hate is it's usually from younger people (by which I mean anyone under about 40). It violates everything some may have been taught as part of their software engineering program: it's difficult to read, maintain, and support.
The quality of the program structure and the ability to read, maintain and support it are due to the programmer, not Perl. People can write programs well/poorly in any language. Like some others here, I *love* Perl and always endeavor to write clear, well-organized code - like I do in any other programming language - so others can make sense of it -- you know, in case I get hit by a bus tomorrow... It's call being professional.
Hate the programmer, not the programming language.
It must have been something you assimilated. . . .
Yep - Perl is C for lazy programmers - well maybe not lazy, but programmers that don't want to have to deal with allocating and freeing memory, which is the bane of C and where many of the security problems arise. The other beautiful thing about Perl is no matter how you write your code, the interpreter compiles it into the most efficient form, just like C.
I think hate for Perl stems from the scripters who try to show off their Perl skills, writing the most concise code which is exasperatingly confusing and serves absolutely no purpose. Whether you write verbose code which takes many lines to do the same thing as concise and hard to understand code, at run time they perform exactly the same.
Perl coders have only themselves to blame for the hate; thousands of lines of stupid hard to read code is a nightmare for the person that comes along months or years later and has to work on your code. Stop it damn it, stop it!!!!!
Did you ever wake up in the morning, with a Zombie Woof behind your eyes? -- FZ
Show me a person who hates Perl, and I'll show you a person who doesn't grok regex.
"First they came for the slanderers and i said nothing."