Why Corporates Hate Perl 963
Anti-Globalism recommends a posting up at O'Reilly's ONLamp on reasons that some companies are turning away from Perl. "[In one company] [m]anagement have started to refer to Perl-based systems as 'legacy' and to generally disparage it. This attitude has seeped through to non-technical business users who have started to worry if developers mention a system that is written in Perl. Business users, of course, don't want nasty old, broken Perl code. They want the shiny new technologies. I don't deny at all that this company (like many others) has a large amount of badly written and hard-to-maintain Perl code. But I maintain that this isn't directly due to the code being written in Perl. Its because the Perl code has developed piecemeal over the last ten or so years in an environment where there was no design authority.. Many of these systems date back to this company's first steps onto the Internet and were made by separate departments who had no interaction with each other. Its not really a surprise that the systems don't interact well and a lot of the code is hard to maintain."
It's the slashdot effect! (Score:5, Funny)
It's simple why businesses don't like Perl. Slashdot is written in Perl. Whenever a business is mentioned on slashdot, their website goes down. Ergo, Perl is bad for business.
Re:It's the slashdot effect! (Score:3, Funny)
For goodness sake, move on. (Score:5, Funny)
You have to migrate your badly written and hard-to-maintain Perl code into badly written and hard-to-maintain Java code as soon as possible.
This is an insult (Score:5, Funny)
This is an insult to associate us Perl-Haters with corporate types.
Re:Perl is WRITE-ONLY language. (Score:4, Funny)
Dim Perl As String.WriteOnly
If You = Well.Disciplined.Person And Write.Comments(UBound(Perl.Lines) = True Then
If Decrypt(Flow) Then
Such Things Happen
Elseif Other.Languages = (C++ Or Java Or Python)
Decrypt.Method += Hard
End If
End If
If Syntax.Contains("$") Then
Return Format(My.Opinion, Humble) & "Bad Syntax"
Else
Return Format("", Opinions.Null)
End If
Ok, so the code sucks (in VB no less)... but, I just found the way you wrote your comment kinda weird...
Re:Why not Python? (Score:5, Funny)
Reason is simple.
Pearls are shiny and worth a lot.
Pythons are scary, they can bite, and have venom and stuff.
Rubies on the other hand are a viable replacement for pearl.
Re:Perl too readable (Score:1, Funny)
I totally agree in general, but your example is bullshit.
@array = map { s/something/better/g } @data;
actually modifies the values in @data, and the result array contains the number of substitutions for each array item. Is that what you had in mind? ;-)
Re:I hate perl too (Score:4, Funny)
chomp is not ambiguous. RTFM and stop crying.
http://perldoc.perl.org/functions/chomp.html [perl.org]
This safer version of "chop" removes any trailing string that corresponds to the current value of $/ (also known as $INPUT_RECORD_SEPARATOR in the English module). It returns the total number of characters removed from all its arguments. It's often used to remove the newline from the end of an input record when you're worried that the final record may be missing its newline. When in paragraph mode ($/ = "" ), it removes all trailing newlines from the string. When in slurp mode ($/ = undef ) or fixed-length record mode ($/ is a reference to an integer or the like, see perlvar) chomp() won't remove anything. If VARIABLE is omitted, it chomps $_ . Example:
If anything I'm crying harder after reading that.
Re:Why Corp. hate Perl? (Score:3, Funny)
- Few Perl Developers
Disagree. Lots of people are using it to do small fixes or administrative stuff like parsing logs etc.
- Difficult (or impossible) to maintain
NO. It's the same as any other language, it's only hard to maintain if the code is written badly and without comments.
- There are better alternatives
Like what? In what other language can you write a simple log-parser that creates some graph's over usages in less than 5 minutes and only requires minimal system-resources?
- Easy to write badly difficult to write well (e.g. Language doesn't lend its self to good practices)
It's easy to write well but it requires someone with some degree of development-skills to do so.
Perl is easy to learn, easy to use. BUT it's too easy to get started with and that causes lots of new developers (or sysadmins with shell-scripting experience) to try it out and that can only result in lots and lots of ugly code.
Re:Why Corp. hate Perl? (Score:5, Funny)
Perl 1.0 was released in 1987, four years before Python. How old is your dad - and more to the point, how old are you?
Comment removed (Score:5, Funny)
Re:Ockham's Razor tells me.... (Score:4, Funny)
with things like OO being rather clunkily bolted on
I beg to differ. I think that how perl handles OO is one of the most elegant ways I've seen any language to it.
Re:Ockham's Razor tells me.... (Score:5, Funny)
to me the biggest issue is maintainability, some languages help you in that department, some hinder.
I quote the lecturer from my software maintenance course:
"As I understand it, the standard maintenance method with Perl is to start again."
Re:Ockham's Razor tells me.... (Score:5, Funny)
oh, don't worry, they'll be brief, this is perl, right ?
Whether you'll be able to read them though, that's a different matter altogether ;)
Re:Ockham's Razor tells me.... (Score:5, Funny)
Well you're a C++ programmer so your vote on elegant OO is NULL and void* :-P
I jest, I jest.
Re:Ockham's Razor tells me.... (Score:3, Funny)
Re:Sometimes the correct answer is the simplest (Score:2, Funny)
http://xkcd.com/208/ [xkcd.com]
I love this particular comic...
Re:Ockham's Razor tells me.... (Score:3, Funny)
Point out this scenario and insist they measure lines of diff, not lines of code. Then re-indent the entire codebase and ask for a bonus.
Re:Ockham's Razor tells me.... (Score:5, Funny)
All Perl needs is a shiny new catch phrase...
Perl on Rails?
CloudPerl?
Extreme Perl?
Perl#?
Re:Ockham's Razor tells me.... (Score:4, Funny)
What is worng with you Perl programmers? Does the thought of a newline or indentation, possibly even whitespace fill you with fear and horror?
Re:Ockham's Razor tells me.... (Score:5, Funny)
One python coder here was scared because I was writing some tools in PERL that he was going to have to use and maintain. He complained PERL looked so terrible and was so horrible to follow that he wasn't sure he'd be able to do it.
That's because PERL, even good PERL, looks like an explosion at the punctuation factory compared to a vast majority of other languages.
Re:Ockham's Razor tells me.... (Score:3, Funny)
don't complain, just s/([;}])/$1\n/gc .conformingsigs
or
perltidy
Re:Ockham's Razor tells me.... (Score:3, Funny)
Re:Why Corp. hate Perl? (Score:4, Funny)
In Internet Time, 1987 was 84 years ago.
Re:Ockham's Razor tells me.... (Score:5, Funny)
Perl6?
Re:Ockham's Razor tells me.... (Score:2, Funny)
Re:Ockham's Razor tells me.... (Score:5, Funny)
All Perl needs is a shiny new catch phrase... Perl on Rails? CloudPerl? Extreme Perl? Perl#?
How about "Perl Necklace?"
Re:Ockham's Razor tells me.... (Score:3, Funny)
When I thought about learning perl, I looked up some sample scripts on the internet. At first I thought the code was corrupted or possibly encrypted. But it wasn't:
That's when I decided not to learn perl.
Re:Ockham's Razor tells me.... (Score:1, Funny)
I hear you. All these multi-various linux distros suck too. There should only be one true way ...