My biggest PHP pet peeve has always been that the arguments are switched in the array_map and array_filter functions. array_map takes the callback first while array_filter takes the array first.
I understand that array_filter takes the array first so you don't have to pass a callback if you just want to filter out empty values, but they could have designed these functions more consistently.
I forget which argument comes first when using these functions all the time.
What is the point in this post here on HN? Old languages have tech debt too. We can acknowledge “bad” parts of languages but I’m not sure what the point of this post is, other than to foment and encourage conflict.
Someone post the “JS bad” blogs again for the people in the back.
The first item in the list, the T_PAAMAYIM_NEKUDOTAYIM error message, doesn't say anything about why the error is referenced that way. That's Hebrew for "::". The idea of using languages other than English to describe things is a big topic in itself, but to read the entry you'd think it was just nonsense letters.
Looks like it was partly updated in 2018. Tempting to flag - but HN's FAQ doesn't mention "reasonably up-to-date" anywhere, so...
Is it just me, but do some of these seem like pretty minor issues.
Like requiring semi-colons at the end of a block. Really?
I'm not going to step through how many of these still apply, but this link hasn't been updated in 5 years and is referring to a version of the language discontinued over a year ago.