2 ms·
> Surely, dive into most other dynamic languages and you will quickly want to stay as far away from php as possible. I always think these kind of comments are
by mekster 7y ago
> Surely, dive into most other dynamic languages and you will quickly want to stay as far away from php as possible.
I always think these kind of comments are nothing but pedantic. PHP is a good enough tool to get the job done and it's stable with good amount of ecosystem and is a good choice if the app is consumed broadly as many hosting providers would at least have PHP installed. If you can't get something done with PHP, I doubt you can using other languages anyway.
Then, what else would you use? Python, Ruby or node.js? Which one provides instant reload of code upon saving the file? These aren't far better than PHP to stay far away from PHP.
PHP isn't my primary language any more but I'd still use it if I need max pool of future maintainers.
The only real annoyance is PHP requires semi colons which does get in the way of coding as you need to type it along with closing quote and bracket when it's already there after each autocomplete when other languages don't need to.
- axegon_ 7y agoAs I said already, I hate js and node with a passion. Having gone through many operating systems, technologies and languages over the last 21 years, I can say that the two languages I'd ban immediately if I become world emperor would be java and js. As for ruby, I never really worked out what's the deal with it. Personally at this point if I were to start a new project targeting the web I'd opt for either go or python, depending on what needs to be made. Side note, I never really understood why people hate semicolons.