This is such a surface-level article. Most of the things listed as advantages exist in other languages as well. Here are some actual reasons to like PHP: 1. Java-like interfaces and classes and strict argument (and soon parameter) typing enforced at runtime 2. Autoloading and "lazy loading" of classes means defining bi-directional relationships between classes/types is painless (this can of course also make you shoot…
Hey, really good list, better than the article. I don't really like PHP, because of inconsistency (it tends to break to flow for me) (but maybe it changed since 2014), but php with strict typing is a big plus for me and php7 is already more than fast enough. I might try it again. The real issue i have with PHP is frameworks :/ Too much choice is a productivity killer for me.
We Don't Hate PHP
81–85 of 85 posts
Re: We Don't Hate PHP
#82I still prefer using PHP than Java or something else when it comes to write proof of concepts. Nothing can beat features like hot reloading, fast debugging, get things done in a matter of few hours.
As I understand you have probably never used python or ruby ;) ?
Re: We Don't Hate PHP
#83The autoloader feature sounds interesting. I've always wondered why there is so much ceremony around importing modules when it seems like the compiler could figure it out in many cases (e.g. when you follow the Go-like style of having module names at the call site). For example every Java file seems to start with entire screenfuls of imports. I've never seen that in any other language. Though I'm sure there are a lot…
Re: We Don't Hate PHP
#84Earlier quoted context omitted.
Hey, really good list, better than the article. I don't really like PHP, because of inconsistency (it tends to break to flow for me) (but maybe it changed since 2014), but php with strict typing is a big plus for me and php7 is already more than fast enough. I might try it again. The real issue i have with PHP is frameworks :/ Too much choice is a productivity killer for me.
I'd really love if we could just start over with the PHP base library design. There's just a lot of cruft that could be neatly packed into classes. For instance, the arguments for array_map and array_reduce are reversed, one takes the function as first argument, one the array.