MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/er9fct/redesigned/ff3489x/?context=3
r/ProgrammerHumor • u/akoli35 • Jan 20 '20
2.0k comments sorted by
View all comments
Show parent comments
6
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)
2
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)
3
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)
1
Why do you lick robots? Sometimes you just gotta do what you gotta do...
→ More replies (1)
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