Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Perl Contempt in My Workplace

by rje (Deacon)
on Apr 26, 2021 at 23:32 UTC ( #11131742=perlmeditation: print w/replies, xml ) Need Help??

The attitude around work is strongly "don't use Perl", in an informal way. It's not an official position, and there's been no talk that I know of about not allowing Perl in the workplace. There are a couple of key scripts that can't be replaced until we move completely into a container-based deployment model. So Perl is officially supported, for now.

That doesn't stop people from putting up style guides for various tools and toolsets in the company, and having a page for Perl that simply says:

Don't use it. If you have to use it, use strict and use warnings. But seriously, don't use it. Use Python.

It's hard for me to rise above this attitude problem. They've gotten it stuck in their heads that Perl is just a spaghetti has-been language and that Python is "all that".

I do what I can... but we all know that story. I write good Perl, I instruct and inform people of good Perl that I've written that does useful things.

But I have a problem: I identify with Perl. I care about it, because it not only was part of my career identity for 20 years; I LIKE Perl and think it does many things better than other languages.

I'm biased. And it offends me that others are so openly contemptuous.

I need thicker skin. What's the best way to get thicker skin about Perl's unpopularity?

I was having an okay day until I saw this blatant display of contempt and smugness.

Replies are listed 'Best First'.
Re: Perl Contempt in My Workplace
by eyepopslikeamosquito (Bishop) on Apr 27, 2021 at 06:14 UTC

    What's the best way to get thicker skin about Perl's unpopularity?
    Apparently, it takes practice and training. :) Well, I recently stumbled upon a popular Ted talk, How not to take things personally by Frederik Imbo, in which Frederik claims he became a soccer referee for the express purpose of getting plenty of practice at being abused ... and to train his brain not to take it personally!

    I also have a curious experience in the workplace I'd like to share. Around the time I wrote Unix shell versus Perl (2008), I successfully argued:

    Notice that the above is arguing against Unix shell scripts, not specifically for Perl. Indeed, the same essential arguments apply equally to Python and Ruby as they do to Perl. However, I view Perl, Python and Ruby as essentially equivalent and, given our existing significant investment in Perl, don't see a strong business case for switching languages.
    I had no trouble back then persuading folks to abandon their beloved Unix shell scripts and Windows .BAT files for Perl.

    A few years later, I could feel the tide turning against Perl, especially from new hires. One fellow in particular was especially vocal about how much he loved Python and hated Perl. Going with the flow - admittedly partly because I'd learned Python by then and quite liked it - I kept him (and others) at bay by adjusting our coding standards to allow Python in addition to Perl. (To avoid total anarchy, Ruby and PHP were not permitted).

    Curiously, after praising Python so loudly for so long, our Python lover never managed to write a single production Python script at work! Why? It turns out, though he "loved" Python, this seemed to be a "theoretical" love, for he was sorely lacking in real Python experience and skills. At least, I was shocked during code reviews because, after using Python in just a few golf games, I was pointing out embarrassing blunders in his Python code. No doubt my many years of Perl experience helped. You see, we were both hired primarily as C++ (not Perl/Python) developers, at least we wrote only C++ at our job interviews. Curiously, he seemed to lose interest in Python shortly after those early code reviews and stuck to C++ after that.

    Since then, it's been impossible to halt the clamour for new programming languages at work, with modern UI tools often requiring Javascript (and derivatives) and modern DevOps tools often requiring JVM languages, such as Groovy, and Banal Configuration Languages (update: see also). As if that were not enough, the younger guys are also screaming for trendy new statically typed languages, such as Golang and Rust, seemingly unconcerned about the impracticalities of rewriting millions of lines of working C++ code or having to maintain organisational skill levels in so many different programming languages.

      a "theoretical" love

      Platonic? Seinfeld on Platonic Relationships (<< youtube warning)

      (In the hope of lightening things up a bit.)

      On the same light mood, I got a bit disappointed seing that you put Unix shell script in the same league as Windows BAT. Brrr, BAT is like Prometheus came and asked for Fire back or ... licensing rights. Bloody food? yikes!

      But seriously, isn't profit (and cost-effectiveness) the only factor governing a free-market company? A choice of programming language based purely on style will kill that company off. I guess I hold a theoretical and idealised picture of this process because inefficient companies survive for years.

      bw, bliako

        I got a bit disappointed seeing that you put Unix shell script in the same league as Windows BAT
        Agreed. (Sorry about that, chief :). I hope I can ease your disappointment by singling out Windows BAT as the worst programming language I've ever used. Perhaps only INTERCAL (and its infamous COME FROM statement) can compete with it. Thinking a bit more, Cobol and PHP are also right up there among languages I really hated in the bad old days.

        But seriously, isn't profit (and cost-effectiveness) the only factor governing a free-market company? A choice of programming language based purely on style will kill that company off.
        How commercial companies decide which programming language/s to use is something of a dark art. See also: In its early years, even a company as big as Google permitted just three languages for serious development work, namely C++, Java and Python. I remember an interview with Guido (can't find it now) where he was asked how come Google came to use Python in the first place and he said he didn't know! (and he was a Google employee at the time!).

Re: Perl Contempt in My Workplace
by syphilis (Bishop) on Apr 27, 2021 at 00:27 UTC
    I was having an okay day until I saw this blatant display of contempt and smugness

    I've mentioned before that many years ago, on the PDL mailing list, Karl Glazebrook suggested that the collective noun for a group of python programmers should be a "smug".
    Looks like that suggestion is still as valid now as it was back then.

    Cheers,
    Rob
Re: Perl Contempt in My Workplace
by Discipulus (Abbot) on Apr 27, 2021 at 06:20 UTC
    Hello rje,

    I'd like to say one laughter will bury you but we all know this is not the case, sadly.

    > What's the best way to get thicker skin about Perl's unpopularity?

    They are fashion victims; without harassing them all, you can show a complaisant superiority, as an old and wise man does looking to youngsters. Ask for real arguments against perl, highlighting that you are all professionists and is really unwise to follow a mundane mood against a technology without real arguments.

    Then take your time to demonstrate how much false are these arguments against perl.

    Never get upset: always a smile of complaisant understanding.

    You are in the frontline of the battlefield where perl can raise or decay.

    We are all with you!

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: Perl Contempt in My Workplace
by bliako (Monsignor) on Apr 27, 2021 at 08:38 UTC

    Perhaps you want to investigate the comparison of security/bugs situation for Perl and Python (comments anyone?). From a quick look I found this: https://www.cvedetails.com/product/18230/Python-Python.html?vendor_id=10210 vs this https://www.cvedetails.com/product/13879/Perl-Perl.html?vendor_id=1885

    I would rather sail the Atlantic with a Perl-person rather than a Pythonista. Better problem-solving skills sharpened by years of being exposed to TIMTOWTDI. The concept of TIMTOWTDI also promotes tolerance to other opinions IMO.

    Whenever I hear Python, I am reminded of the great Primo Levi and his short story in the Periodic Table, about sourcing Nitrogen for making lipstick. At first he went to his chicken coup but couldn't get enough, then he read that Python's poopoo contain the biggest quantity of N (urea) in the animal kingdom (citing from memory now) and thankfully a circus (zoo?) was visiting the town. So, off he goes to the snake-keeper of the circus and asks to relieve the circus from cleaning the Python's mess. The snake-keeper shows him a long list of people waiting for python poo but the cherry in the pieeopoo is that ... pythons poo just twice a year.

    Enjoy the day with an one-liner.

    bw, bliako

Re: Perl Contempt in My Workplace
by hrcerq (Scribe) on Apr 27, 2021 at 22:29 UTC

    I'm sorry to "hear" that, rje.

    First and foremost, I'd like to thank you for sharing this. It reminds me there are other people facing this same kind of issue. That means we can help each other finding strengh and insight to get through it.

    Python has become very popular in the company I'm working for, but even Python is mocked sometimes by Java people, as some seem to have a strong belief that Java is the solution for everything (and here I was, thinking this was a problem of ten years ago).

    The mere fact that somebody can believe there's a one-size-fits-all solution suggests a serious cultural problem, in the first place. Needless to say, people who think like that would have a hard time with Perl TIMTOWTDI thing.

    But what's ironic here is that my interest in Perl arose because a co-worker in this same company once asked me something about Perl. I had never programmed in Perl until then, so I couldn't help him. Perhaps even more ironic is the fact that he was working on a container.

    But anyway, I thought to myself: "if he believes for some reason that I'd have the answer, then maybe it's because I should". I mean, "maybe it's because I'd like Perl". And I was correct. It didn't take me long to see how much enjoyable Perl is.

    I've tried to argue with my boss last year about that. I told him how daunting it is for me to have sometimes to get my feet on Java code (not that it happens very often, thankfully), while Perl is never ever mentioned for anything.

    His answer was not really surprising:

    "I understand you, but I must be able to hire people who can work on it afterwards. What happens if you leave the company? I won't have a good time finding other Perl programmers."

    Actually, I think he'd be surprised about how wrong is that last statement, but the thing is I couldn't prove him wrong. I believe groups like Perl Mongers could greatly help on that. However, the pandemic situation brought some difficulties on it.

    What always helped me get through such situation are communities, no matter how small they are. They're like a safe harbour. When you know there's people who care about something, that's what give you strenght to fight for it too.

    It's just like how many species afford to survive: they work together. Without that, there's no surviving. Bees and ants, for instance. They build their places together so they can survive as a group. I think we can always learn from them.

Re: Perl Contempt in My Workplace
by LanX (Sage) on Apr 27, 2021 at 18:14 UTC
    I don't know the cure but understanding the reason might help.

    • A Evolutionary struggle
    • B Psychology.

    A) open source lives from contribution and bad mouthing the competition helps lifting the own chances.

    B) most people want to be on the winners side. The more insecure they are about their own skills the more inclined to mob others°. They might say they are Pythonistas, but an average Perl programmer will beat most of them in Python.

    Trouble is the self fulfilling prophecy happening here.

    I don't have a recipe for you.

    Personally I'd come with a use Perl or die; t-shirt to work and demostrate Perl fun each day. :)

    Cheers Rolf
    (proud member of the PEK - Perl-Emacs-Kraut - community)

    °) "True I beat my wife but hey my neighbor is even worse and always screams at his kids ..."

      Personally I'd come with a use Perl or die; t-shirt to work and demostrate Perl fun each day. :)

      I'd use one of my perl poems for that shirt with

      # *perl* goto HELL;

      on the back and the poem on the front, adding a snarky footnote:

      HELL: { eval "die;"; goto HELL; redo; } # You¹ can't redo. # ¹) python
      perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
        I got mine at YAPC Kiew in 2013°

        funny enough the "T-shirt constructor" is still online.

        https://act.yapc.eu/ye2013/t-shirt/index.html

        Maybe you wanna use this model for your own online t-shirt business? :)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

        °) stayed later at a friends place in Odessa, who turned out to be championing Python. Alone his facial expression after meeting me at breakfast with this t-shirt was worth the trip! :)

Re: Perl Contempt in My Workplace
by karlgoethebier (Abbot) on Apr 28, 2021 at 09:47 UTC

    Some prejudices on Perl often heard over decades:

    • Perl isn’t a real programming language
    • Perl is just a scripting language
    • Perl is an interpreted language
    • Perl is slow
    • Perl is too old
    • Perl doesn’t really support OO
    • Perl programming is considered harmful

    And many more. After a while I gave it up arguing on this crap and thought by myself «Kiss my ass!» and did my job as usual. With Perl.

    «The Crux of the Biscuit is the Apostrophe»

Re: Perl Contempt in My Workplace
by karlgoethebier (Abbot) on Apr 27, 2021 at 19:30 UTC
    «...contempt...»

    This was an issue in any company I was with until I retired. What this Wisenheimers forget or don’t know (!) is that most of their systems rely less or more on Perl: Cron jobs, Backup, Databases, Monitoring, Ticketing, Mail, Firewalls etc. See also

    «The Crux of the Biscuit is the Apostrophe»

      ..., Databases, ...

      PostgreSQL, which is mainly a C project, has in recent years (!) adopted tap + perl for testing, and total perl files (*.p[lm]) have grown to several percent of the total lines of code in the tree.

        And there is PL/Perl

        Update: Linked to current version of PL/Perl

        «The Crux of the Biscuit is the Apostrophe»

Re: Perl Contempt in My Workplace
by rje (Deacon) on May 03, 2021 at 14:35 UTC

    Thank you, fellow monks. I appreciate your thoughtful and honest responses, and ... well frankly, the community is a source of strength with this issue.

    Thank you again!

Re: Perl Contempt in My Workplace
by ablanke (Parson) on Apr 28, 2021 at 18:29 UTC
Re: Perl Contempt in My Workplace
by QM (Parson) on May 31, 2021 at 14:50 UTC
    For all the equivalencies between Perl and Python, I miss these most in Python:
    • strict and warnings
    • variable scope
    • variable assignment in expressions (though there is now a restricted version in Python)
    • autovivification
    • one-liner capabilities
    • sigils

    And I don't care for the GIL, but it seems that's a big problem however you slice it, for many languages.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

      > variable scope

      Python has function scope, I think you mean block scope.

      I'd add

      • Lambdas (= Ano. Subs) with more than one expression

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

      Agreed! Especially Perl vs Python variable scope. This was discussed at length a few months ago -- see especially the many insightful replies from the LanX. :)

Re: Perl Contempt in My Workplace
by vkon (Curate) on May 05, 2021 at 11:16 UTC
    I agree with you and share your feelings.

    I like Perl syntax. Coding/using in perl is enjoyable experience, whereas on other languages there are many places which are not as good as in Perl.

    ~10 years ago Perl ecosystem was huge - you could find almost everything on CPAN - it was clear for me that Perl solution is always the best (well, almost :) )

    However - now I pretty much understand and even support a point of perl refusals.
    There are too much missing things in Perl right now:

    • CPAN no longer covers all modern techniques:
      • WebASM - there was some discussion on p5p about a year ago but this went nowhere.
      • "neural network" and other data science - there are some old modules but ecosystem is almost empty, at least compared to other languages
      • etc.etc.etc...
    • Core language:
      • simple file reads which are present in Python/NodeJS but "cumbersome" in Perl.
        I want functionality of IO::All but available everywhere even without CPAN access. IO::All is too heavy
      • Sets and simple things like 'x' in ('a' .. 'z'); I can write exists {map{$_=>1}'a' .. 'z'}->{x} but this is too much. Core language does not have this as simple as I want it

    starting from about ~10 years ago things have globally changed.

    Now some personal recent experience.

    Recently I tried to use JQuery/Datatables and even found several CPAN modules for it, tried to use these and failed.
    After I've failed in perl, I succeeded with NodeJS on that, I got what I needed. I had confirmation on my table that other language's ecosystem is more current.

    Perl is no longer of that 20 years ago.
    Sorry, guys.

    I am still missing 'use strict' in Python, and 'use strict' of NodeJS is not as complete as Perl's one. And also missing brevity of regexps,

    ....but also I understood that brevity of regexps is compensated by additional code which is needed for instant file reads and other missing core features.

      "Recently I tried to use JQuery/Datatables and even found several CPAN modules for it, tried to use these and failed. After I've failed in perl, I succeeded with NodeJS on that, I got what I needed. I had confirmation on my table that other language's ecosystem is more current."

      All you have to do is send a JSON response for Datatables to read, you don't need 'Datatables' module to do that. JSON::PP is core. For what it's worth putting together a Datatables heavy application took almost no effort using Mojolicious::Lite for handling everything.

      Update: Added JSON::PP is core.

        ...but this means I need to do all my heavy-lifting myself, whereas I want be standing on shoulders of giants.

        ok, you probably know this http://datatables.net/ better and probably already solved similar tasks
        probably it's my fault for not finding a good way in Perl - but for me - 20+-year perler - it wasn't easy to do in Perl but easy to do in NodeJS - that infrastructure is currently better supported

      > Recently I tried to use JQuery/Datatables and even found several CPAN modules for it, tried to use these and failed. After I've failed in perl, I succeeded with NodeJS on that, I got what I needed. I had confirmation on my table that other language's ecosystem is more current.

      Whose magic wand's going to fix that? If you find a library is missing, you are the best candidate to fill the gap!

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
        So I found that the library was missing (not exactly missing - there were CPAN modules which haven't fulfilled my needs)
        but I found what I needed in nodejs ecosystem http://www.npmjs.com/

        But I see your point about creating such a module myself and uploading it to CPAN. And ~10 years ago it was the approach which I probably have choose, because all other libraries are here on CPAN.

        Perl have lost critical mass of its users, who will fill the gaps on missing modules, unfortunately for me and for other perl users.

      I've been using DataTables for years and have never found a use-case where a module would have helped. You prepare your data and send it to the front end as JSON. All the heavy lifting in that application is in writing the JS and particularly the CSS. You make a good point but this is a bad example.


      The way forward always starts with a minimal test.
        ...ok,
        so probably I should have posted my question here and you could have helped me back then. That's good. :)
        Perlmonks is a very strong point of Perl community.

        Still, I do not think of my example as "bad example".

        see: I tried different CPAN modules, but these haven't fulfilled me.
        I honestly searched both Perl @ cpan+perlmonks+google and searched nodejs @ npmjs+stackoverflow+google and found better solution in nodejs land.

        I am a bad searcher? probably. should I improve my google-fu? probably.
        However I still think this is not a bad example in a sense that this is a real-life example.

        I am some poor user who found some solution outside of perl for some reasons....
        I do not think that I am alone with such experience

        I saw this blog of 2017,
        Reading such articles exactly give an impression that now CPAN have many missing areas of modern techniques
        Fortunately Sergey published CPAN module for the missing piece that he found.

        My sincere gratitude goes to him, and also to you, who provide efforts to improve this situation.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://11131742]
Approved by Discipulus
Front-paged by Discipulus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-12-02 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (17 votes). Check out past polls.

    Notices?