PHP coders are the worst
2007/07/07 filed under /phpI've ranted about the horrible PHP in the past enough so I won't yell at it for too much this time. In this post, I'd just like to point out the way of thinking of some (if not most) PHP coders.
As a big Flickr fan, I follow the discussion boards on API usage (I use the Flickr API myself at my Invitr project).
Yesterday, this guy posted the following:
Uploaded some new pics to a set yesterday. They showed up on our flickr page here, but not on our external site. Then this morning I go to check and see if they are visible yet, and I'm greeted with the following error:
Notice: unserialize() [function.unserialize]: Error at offset 0 of 1171 bytes in /home/content/s/g/t/sgtattoo/html/includes/phpFlickr.php on line 238
Here is line 238 from my script:
$this->parsed_response = $this->clean_text_nodes(unserialize($this->response));
Is this one of those things that's going to suddenly start working again in a few hours, or has flickr made some changes they didn't tell us about?
I told him that he should always check and make sure that $this->response really contained the values he was hoping for, but of course, PHP programmers know better:
As far as I'm concerned, error reporting is really only there to aid in initial development. My script has worked fine for the last 6 months, and I haven't touched it since. So this is a Flickr issue, not an issue on our end.
Now this just really angers me! Error reporting is only to aid in initial development? Pffttt ... enough said. I hate PHP and its' users!


