4 ms·
> If you think PHP is a good language today then say that, but let's not pretend that the complaints and ridicule were always undeserved. It's a question of wh
by burnte 7y ago
> If you think PHP is a good language today then say that, but let's not pretend that the complaints and ridicule were always undeserved.
It's a question of when do you let that go?
- kossae 7y agoRight, I don't think it's necessarily the people that are _for_ PHP are ignoring the past, it's that the people _against_ PHP are still stuck in it.
- slikts 7y agoThis is a common straw man; PHP 5 and 7 made large strides, but that's because there was so much to fix, and there still is and will continue to be, like lack of first class functions, actual modules, etc. PHP is also unsuitable for persistent processes like serving WebSocket.
- DJBunnies 7y agoRatchet works fine.
- krick 7y agoWhy do you need "actual modules"? I feel that (when PSR-4 is followed) PHP's code separation practices are among the best, especially compared to other interpreted web-languages (Python, Ruby, js). And it's convenient while experimenting that it doesn't really enforce anything.
- slikts 7y agoWithout modules there can be dependency hell: conflicting subdependency versions, unless all your dependencies update their subdependencies in lockstep.
- rawfan 7y agoWebsockets are no problem with Ratchet. OhDear is a high traffic app that uses laravel-websocket (based on Ratchet) with absolutely no performance issues.
- imron 7y agoThey probably still have to maintain systems running PHP 5, and are quite literally stuck in it ;-)
- slikts 7y agoNever, since PHP is fundamentally flawed, and trying to redesign it would make the split between Python 2 and 3 pale in comparison. PHP's main selling point is backwards compatibility and the existing ecosystem; a fundamental redesign would remove that. PHP's name is also mud when it comes to programming language design, and its community is notorious for poor practices, so no one's really clamoring for a more modern PHP. The bitter truth for PHP stans is that it is what it is, you can get things done, and you can have valid reasons for using it (like legacy reasons, job market, etc.), but it's rightfully trending down and will continue to.