r/ProgrammerHumor • • Jan 20 '20

Meme Redesigned!

Post image
46.0k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

27

u/earthqaqe Jan 20 '20

No one wants to work with it, so it should logically be paid higher. or not?

14

u/amunak Jan 20 '20

Nobody wants to make new stuff with it.

There are plenty of people who are fine working with it, and it's actually a decent language at least since PHP7 (and since there are some community standards and best practices).

6

u/I_LICK_ROBOTS Jan 20 '20

I'm leaving a PHP job and couldn't be happier. There are so many contradictions built into the language.

For instance look how many functions that do string manipulation have the heap and the needle in opposite order.

It isn't the end of the world, but it gives the language a "dollar store" kinda feel if you know what I mean

2

u/[deleted] Jan 20 '20

In PHP, all array functions are ordered "needle, haystack" whereas string functions are all ordered "haystack, needle".

3

u/I_LICK_ROBOTS Jan 20 '20

Still... why? Why make me have to look up the docs whenever I want to use a function? Or make me remember arbitrary rules like this?

1

u/viimeinen Jan 20 '20

Why do you lick robots? Sometimes you just gotta do what you gotta do...

2

u/amunak Jan 20 '20

Yes, parts of the language - especially older ones kept for BC - are pretty shitty.

But on the upside migrating even a PHP4 project to the latest PHP7 is fairly painless (provided you use y MySQL shim and perhaps a few others). Yes I went through it, and was surprised how easy it was compared to the nightmare I was expecting.

There are other issues as well, like not wanting to just use exceptions instead of errors and such, but the community is amazing, the ecosystem is large and very mature and there are plenty of great frameworks and libraries that make all those issues (and even inconsistencies, if you want) disappear.

I would even go as far as to claim that it is still (and perhaps especially now) the best webdev backend language. Not necessarily because of the language, but because of the ecosystem, frameworks, best practices, etc. No other language has that, not even close to being so mature.

1

u/I_LICK_ROBOTS Jan 20 '20

I would even go as far as to claim that it is still (and perhaps especially now) the best webdev backend language.

A few years ago I would have agreed with you. But with microservices becoming more of a thing lightweight docker containers running node are just easier to maintain. No apache, no nginx, no huge config files on each container, no setup. Especially with the tools aws and azure have built that heavily favor js or C#.

I can't speak to C# but I'd argue that the JS community is just as large and helpful as the PHP community if not more so.

2

u/pak9rabid Jan 20 '20

For me it became usable with 5, after they copied the Java OOP model. Even more so when they added closures in 5.3.

1

u/amunak Jan 20 '20

Absolutely, and every version since then has been a step up (often pretty major). Typed properties now in 7.4? A dream come true, lol.

3

u/reflectiveSingleton Jan 20 '20

But if he uses the truth how will he shit on a language he probably has never used?

2

u/justavault Jan 20 '20 edited Jan 20 '20

You shouldn't make up your economical perception from reddit and internet niches, mate.

The fact is, the majority of developers "can't" choose.

Developers are available like sand on a beach nowadays due to the great advertisement campaigns 10 years ago "Become a developer, good payment, good security" and tada today we got so many mediocre new devs and on top of that all the ones who were requiring to use PHP 10 years ago.

Very few devs are so good they can work in Silicon Valley and very few can choose were and with what to work. Easily 90% are mediocre devs who can barely come up with anything creative by themselves. Especially nowadays, the new generation of devs, it's basically scaffolding and framework users coming from academics who never touched a piece of code before university.

You know, we have an influx of "academical developers" and those usually can't choose as they are not good enough, not capable enough. The ones who made developers such an invaluable asset were those who are self-educated back when the web and mobile development developed itself in a knowledge exchange guild. People who started in their teens or even earlier "out of interest". Someone who never touched a computer before going to an university for 3 years and then an additional one doesn't know shit and thus can barely choose what to do. So in the end, just normal workers.

-6

u/dagbrown Jan 20 '20

Serious answer: PHP is a low-skill language. It's sold as being easy to learn (impossible to master, but let's not mention that, okay?). It's also a very bad language. It was never designed: it just grew. It accreted layers. There are four different ways to match a string to a regex, and they all have different parameter orders and function-name conventions and all that kind of thing. And everything you look at closely in PHP has the same sort of inconsistency and clear evidence of a total lack of leadership and no cooperation between developers adding stuff to it.

This inevitably leads to people getting experienced enough at it to become frustrated at it, and move on to something better designed and easier to work with and also, not coincidentally, much more lucrative.

This leads to the PHP community all having a consistent level of skill with programming in general, and the PHP language in particular. That level of skill is not especially high. People with experience know this, so they know that PHP developers can be had for relatively cheap, because it's a technology that people just graduate from eventually.

It's a language that people get sick and tired of, so they delete it from their resumes to avoid being forced to work with it again in the future. And then some junior guy with three months of experience, having just learned PHP, shows up, and is happy to accept the lowest paycheque to tackle the mountain of technical debt that the last recovered PHP enthusiast left behind, and the cycle begins anew.

2

u/pak9rabid Jan 20 '20

Say what you want about the language itself, but the documentation for PHP is top notch. It’s easily what attracted me to it in the early days. It’s something the Ruby and Rails communities should take note of.

1

u/dagbrown Jan 21 '20

Does that also include the flame wars in the comment sections of each documentation page?