Hacker News new | ask | show | jobs
by lucasoman 6139 days ago
I'm not complaining about what features PHP has. In fact, I was never that annoyed that PHP didn't have lamdas or closures until now.

My problem is that it wasn't implemented _correctly_. If you're going to implement a feature, do it right or don't do it at all. Their lack of concern or pride in their project does not bode well for the community.

4 comments

If there's anything good about PHP that I can tell, its that development is heavily community driven and has been since the early days. However, I think PHP got so popular, and so quickly, that in many cases the community's desire for features has led to an inconsistent, and in your view, 'broken' system. The need for backwards compatibility from almost the very beginning has taken its toll, I think. Is it really 'broken' though? Of course, similar concepts have been implemented in other languages much more elegantly. But PHP is not about elegance - it's about backwards compatibility, and responding to community feature requests.

I'm not a part of the community, and I'm no longer a PHP developer (if I can help it) but I can't think of any other reason the global functions would still have inconsistent argument orders almost 14 years on. So, if the 'correctness' of their implementation bothers you, do what I did: move on. Because it will never get any better.

Incidentally, I wrote an anti-PHP rant last year called "Why PHP Won" that made its rounds here. It's pretty easy to get fed up with PHP, especially when you know there's better stuff out there. Once you're at that point though, you're done. It's anything-else time.

My comment wasn't entirely directed only at your post. The most common complaint against PHP (and other languages, frameworks, etc.) is that it doesn't support the features or methods the programmer expects.

That said, in direct reference to your post: so what? My point still stands. I don't disagree with your assessment of the way it implements those features, I just don't think that it means "there is no hope for PHP", and I don't think it's at all productive to waste time complaining that it doesn't behave the way you want it to.

PHP -- and most other languages -- do have the power to "hack something together". You just have to be willing to adapt to the system at hand.

This is a reasonable statement.

But there's a bit of a delta between this and the attention-grabbing title of the post.

Sorry; it wasn't meant to be attention grabbing. It was more out of frustration, I suppose.
It's spelled "lambda".