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-18 09:34 pm (UTC)
From: [identity profile] ralesk.livejournal.com

Perl for the win.

Perl X_X

Date: 2006-07-19 04:50 pm (UTC)
From: [identity profile] olego.livejournal.com
Perl, mind you, isn't much better. My loyalty to it is failing: I can't write anything without looking it up. The latest problem I had was that the break keyword should actually have been the last keyword, even thought the break worked perfectly fine.

And don't even get me started on the 5 ways you can call a subroutine:

a();
&a();
a;
&a;
goto &a;

I mean, yes, all five are slightly different, but for Crissakes! And typeglobs? And automatically flattened lists UNLESS you use references, in which case it's $var{$something} or $var->$something... Grr.

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:00 am
Powered by Dreamwidth Studios