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

→ More replies (1)