Wow, I'm surprised that SQL hasn't made it up here yet. Guess that means nobody loves it :)
...And a few bonus reasons to hate it, at no extra charge
Five things I hate about Java:
I know, I should check out Scala.
JavaScript:
All the coolest things are insanely complex, but then, all the coolness is also wrapped up in such a small amount of code that you feel stupid for struggling to follow it
'+' is an absurd choice of operator for concatenation in a weakly-typed language. Were they trying to scare off the noobs?
It's a cross-browser compatibility minefield (never mind if it's even turned on or not)
It's generally untrusted - associated with scummery such as blocking the back button, pop-ups that never die, etc.
It's nearly impossible to debug because there are only a few different error messages and a few different types (Number, String, Object, etc.)
If it wasn't for jQuery, I'd probably still hate it as much as I used to :)
PHP:
1) Forces me to make unnecessary variables:
$parts = explode('|', $string);
$first = $parts[0];
2) An implementation of lambdas so lame it is roughly equivalent to using eval()
and so hideously wrong I have never used it (see http://www.php.net/create_function).
3) A try/catch system which can only catch about 80% of errors that might occur.
4) Regex support just as lame as lambda support because it has to be written inside regular strings, making one of the most hard-to-learn programming tools about three times as difficult. And PHP is supposed to be an "easy" language?!?!?
5) No way to safely pull stuff out of $_POST without writing it twice or building your own function, or using the '@' operator:
$x = isset($_POST['foo']['bar']) ? $_POST['foo']['bar'] : null;
6) Bonus answer: '@'. If you can't be bothered writing your code correctly, just add '@', and too bad for anyone who has to debug your code later.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With