The point of php was to not be ”good”, but to be practical. A simple way to add some logic to html.
Write a few lines, upload it, boom it works. Quick and easy.
There is a place for typed & strict languages and a place for pragmatic ones.
But php got shamed for it so badly they got into an identity crisis, for the last decade it’s slowly been trying to become Java and do everything correct.
Same with Wordpress, before I could just make a plug-in with one php file & a few lines. Now I have to create a separate npm project and build for every tiny change
Write a few lines, upload it, boom it works. Quick and easy.
There is a place for typed & strict languages and a place for pragmatic ones.
But php got shamed for it so badly they got into an identity crisis, for the last decade it’s slowly been trying to become Java and do everything correct.
Same with Wordpress, before I could just make a plug-in with one php file & a few lines. Now I have to create a separate npm project and build for every tiny change