r/ProgrammerHumor • • Jan 28 '23

Meme C++

Post image
53.9k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

201

u/jfmherokiller Jan 28 '23

they atleast have stuff like ruby on rails perl is well perl.

98

u/grey_hat_uk Jan 28 '23

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.

52

u/Oukaria Jan 28 '23

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.

14

u/arobie1992 Jan 28 '23

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.

5

u/El_Grande_El Jan 28 '23

Man, getting the right regex feels amazing lol

3

u/arobie1992 Jan 28 '23

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.

22

u/Uberzwerg Jan 28 '23

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.

4

u/AssAsser5000 Jan 28 '23

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.

Like bro, 1©✓|√÷√÷π£¥Ksjf÷×÷][[[[∆¶××` might have been the most elegant code you've ever written, but fuck if it makes sense to anyone else.

5

u/Uberzwerg Jan 29 '23

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.

→ More replies (2)
→ More replies (2)

5

u/fdeslandes Jan 28 '23

Perl is the only language where the regular expression are the easy part to read.

→ More replies (1)

81

u/okay-wait-wut Jan 28 '23

When are emerald, diamond, sapphire and garnet going to get languages?

93

u/Burger_Destoyer Jan 28 '23

Sorry I didn’t realize coding became gen IV Pokémon.

16

u/StanleyDarsh22 Jan 28 '23

Wait isn't ruby/sapphire gen 3

3

u/ulyfed Jan 28 '23

Yeah, diamond and pearl are Gen 4

2

u/ForkLiftBoi Jan 28 '23

For the next gens they're gonna try something new, it'll be a bit choppier and maybe slower, but at least it'll be different.

7

u/Shikogo Jan 28 '23

What about Steven?

2

u/Sr_Pinapple_031 Jan 28 '23

"You code Steven?"

"Yeah, why?"

"And how is it?"

"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"

5

u/pindab0ter Jan 28 '23

There's Crystal, I guess?

0

u/[deleted] Jan 28 '23

[deleted]

3

u/[deleted] Jan 28 '23

As a concept

2

u/jfmherokiller Jan 28 '23

Perl takes the best features from other languages, such as C, awk, sed, sh, and BASIC, among others.

"best features" oh god.

0

u/[deleted] Jan 28 '23

[deleted]

1

u/Mysticpoisen Jan 28 '23

Django is at least python compatible. It's infrastructure stuff like Puppet where Ruby shines imo.

→ More replies (1)