Re:Show HN: PHP does Meta Programming too
by kachnuv_ocasek on Wednesday August 31, 2011 @06:31AM
(#2945019)
Oh god, no! If they rather fixed the eye-stinging bugs instead of creating other hundreds of them.
[ Parent
| on HN ]
I work with PHP daily and do not know of what you speak. Haters be hatin', but your 'eye-stinging bugs' are unknown to me. Care to provide some examples?
You are probably referring to the mountains of crappy PHP code? About the inconsistent order of 'haystack' and 'needle', or the lack of a common policy on whether or not to use a underscore as separator? Those are valid complaints, but no argument against improvement of the language. On the contrary, I would say.
Re:Show HN: PHP does Meta Programming too
by apgwoz on Wednesday August 31, 2011 @08:12AM
(#2945200)
I think he's referring to bugs such as breaking crypt() when using an md5 hash as a salt, and other things of that nature.
Re:Show HN: PHP does Meta Programming too
by troels on Wednesday August 31, 2011 @08:26AM
(#2945234)
That was fixed pretty fast though (Notwithstanding that it shouldn't have happened in the first place, but hey)
Re:Show HN: PHP does Meta Programming too
by apgwoz on Wednesday August 31, 2011 @09:37AM
(#2945453)
Sure, but when a bug like that occurs it gets "mainstream" press and PHP haters everywhere add it as part of the book of "Ugh, PHP Y U So Horrible?"
Re:Show HN: PHP does Meta Programming too
by apgwoz on Wednesday August 31, 2011 @02:37PM
(#2946914)
downvoters: If you disagree, at least tell me why...
Re:Show HN: PHP does Meta Programming too
by rmccue on Wednesday August 31, 2011 @08:52AM
(#2945286)
There's a fairly consistent order of haystack/needle, but it depends on what the function does (i.e. string functions vs. array functions).
It is fairly annoying to have any differences, but it's fairly easy to remember them.
Could just be me, but it seems like there's a decided bias against PHP on a lot of HN threads. As someone who uses PHP on a regular basis, I'd love it if you could point out some of these "eye stinging bugs". I experiment a LOT with other languages and I don't find anything lacking in PHP that I need in a scripting language. I've never been unable to accomplish anything that I needed to in it, and I personally don't recall ever having to resort to unsightly hacks. All this whining is getting rather old. PHP is not Clojure, Ruby, Node or [insert your favorite language/tech here], and guess what? Some of us like that, a lot.