Perl is one of the greatest and most powerful languages to write.
Now if you ever have to read it you're screwed and will have to slaughter 6 goats, 3 chickens and a hamster to make sure you don't break one of the 20 operations in each line just by looking too hard.
My manager is an old school dev, he always go by « heee fuck it I’ll do it in perl » and give me the code, I use it and it works perfectly but everytime I try to read it my brain explode. Fucking one line magic.
I've never used perl, but from what I can gather it's in the same boat as regex. Very terse syntax that as a result has a fairly steep learning curve, but once you figure it out it's actually not too bad and you feel like a fucking wizard.
It really is. I was doing something at work yesterday that involved picking out pieces of a url and validating them. I was like, hey a combo of regex and validator function lookup map would be nifty. It took like 3 hours to do and I may have over-architected it a little, but it might have been one of the most satisfying things I've done in the past year.
I have trained/onboarded several people into our company in the past decade and one of the most important lesson i have to get across is to NOT do all that fancy stuff you can do in Perl. 90% of it is just "write as you would do in any other language" and be happy for great support for RegEx + network (which is 50%+ of the job anyway)
But by working on that priniple, we have a readable Perl code base.
Everytime I have to work with Perl I feel like Jurassic park. They were so concerned with whether or not the could, they didn't think about it they should.
As mentioned, i work in Perl full time for a decade and the fact that i can't tell if this is real perl code or reddit fucked up the formatting should say enough.
"Well, it can do absolutely everything, but is really slow and sensitive, every time you misstype a word, the whole code colapses and you'll have to start all over"
201
u/jfmherokiller Jan 28 '23
they atleast have stuff like ruby on rails perl is well perl.