torkell: (Default)
[personal profile] torkell
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?

Date: 2006-07-19 04:40 pm (UTC)
From: [identity profile] olego.livejournal.com
There's a better reason to hate PHP:

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.

Date: 2006-07-20 05:27 pm (UTC)
From: [identity profile] olego.livejournal.com
Behaves just as expected by me. Yea, I admit that the idea of global and superglobal variables is a bit quirky, but what's even more quirky is being able to use variables before defining them.

Fine, it's a scripting language, etc., etc. :-)

January 2026

S M T W T F S
     123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 8th, 2026 10:01 am
Powered by Dreamwidth Studios