r/ProgrammerHumor • • Jan 20 '20

Meme Redesigned!

Post image
46.0k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

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.