(no subject)
Jul. 18th, 2006 10:18 pmI hate PHP.
It just took me a good ten minutes to realise that I had typed $ids[i] instead of $ids[$i] in a PHP script.
And this is far from the first time I've made that mistake, which is because all the *real* programming languages I know have grown out of using prefixes to denote variables, and would not fail silently in such a case (well, VB would if you're mad enough to code without Option Explicit, but C and Java would fail noisily).
Did I mention that I hate PHP?
It just took me a good ten minutes to realise that I had typed $ids[i] instead of $ids[$i] in a PHP script.
And this is far from the first time I've made that mistake, which is because all the *real* programming languages I know have grown out of using prefixes to denote variables, and would not fail silently in such a case (well, VB would if you're mad enough to code without Option Explicit, but C and Java would fail noisily).
Did I mention that I hate PHP?
no subject
Date: 2006-07-19 04:40 pm (UTC)How do you spell a function name?
First, there are abnoxious names, such as nl2br. I mean, seriously, what the fsck? Sounds like Netherlands 2 Britain, for crying out loud.
Then there are functions without underscore. htmlspecialchars, for example.
Lastly, there are functions with underscores. mysql_escape_string. Actually, a better function is mysql_real_escape_string, because the first one is actually fake.
Once again, WTF!? Why do you have split, explode, and preg_split, spliti, and str_split? It's awful and ugly. So my fav. languages are C, Scheme, and JavaScript.
no subject
Date: 2006-07-20 09:54 am (UTC)$foo = "banana\n"; echo "Before doStuff:" . $foo; doStuff(); echo "After doStuff:" . $foo; function doStuff() { echo "Entering doStuff:" . $foo; $foo = "apple\n"; echo "Leaving doStuff:" . $foo; }Without running it, guess what it'll output.
Then try to name another mainstream programming language which behaves the same way.
no subject
Date: 2006-07-20 05:27 pm (UTC)Fine, it's a scripting language, etc., etc. :-)
no subject
Date: 2006-07-20 09:13 pm (UTC)