DEV Community

Discussion on: Why developers hate PHP

Collapse
 
mikequade profile image
Mike Quade

Thanks for the article! After putting my gun down, I really enjoyed reading it.

My point is that PHP is old but I see it as an advantage. Older languages are not changing their language features all the time. The documentation is good, examples are available everywhere and it has a huge community to ask if you are stuck.

There are also lots of articles and best practices available regarding security. Or about how to write good code which imho relies on the dev's skills, effort and responsibility (maybe even a little bit of empathy) and not on the language itself.

With newer languages, I've already spent hours on finding code examples that actually work because half of stack overflow post examples are already deprecated or even the official doc might be deprecated.

That beats the bad code argument for me because newer languages might be safer and more restricted, but if there is no information or actual doc available about how it is supposed to be used, you'll end up hacking your code together again without really knowing what you are doing.

It might not be that easy as in PHP, but it can still cause a lot of trouble later and security leaks.