3 ms·
People who hate PHP-- or even worse, hate other people for writing PHP-- generally don't have anything of value to add to the criticisms of PHP. They just dismi
by some_furry 6y ago
People who hate PHP-- or even worse, hate other people for writing PHP-- generally don't have anything of value to add to the criticisms of PHP. They just dismiss the language entirely, link to 2012-era blog posts about its imperfections, and never bother to see if anything was fixed in PHP 7 (or, as of the end of this year, PHP 8).
This kind of toxic mentality doesn't produce better code, and it sure doesn't produce better coders. It's just free-floating hostility and gatekeeping.
Here's a few parts of PHP that improved in the past 6 years:
* Static type declarations (and return types, and strict typing, ...)
* Composer has become the de facto package manager for the PHP ecosystem
* Better cryptography (bye mcrypt, hello sodium)
* High quality open source libraries (i.e. Guzzle)
And I haven't even reviewed all of the changes coming in 8.0.
- lowmemcpu 6y agoI think it's fair to say that PHP was okay, historically, but with hindsight, I wish I would have moved on sooner. I made a lot of money on PHP code. But then realized there were other languages that I could also make money on, that worked better for what I needed. But would I go back? No..
- eberkund 6y agoWhat did you switch to out of curiosity?
- cheriot 6y agoI've no doubt that there are people taking programming opinions way to far and it sucks that PHP devs have to deal with that. OTOH, there are now mainstream languages with null in the type system, union types, pattern matching, etc... it looks (from the outside) like PHP caught up to where the industry was 10 years ago. If I'm uninformed I'd love to see a comparison to Typescript, Kotlin, Swift, or Scala3.