(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-18 10:53 pm (UTC)You think thats bad, try searching for this difference in 500 lines....
({
no subject
Date: 2006-07-19 01:19 am (UTC)Trying to find a bug in 400 lines of code: I had accidentally written '<<' instead of '>>' ....
That was a headache and a half.