Live data from Hacker News

The Future of PHP

medium.com

31–40 of 66 posts

Re: The Future of PHP

#31

It’s exhausting seeing these kinds of discussions. The only people who think PHP is dying is those who don’t use it. Besides the languages quirks, it’s incredibly productive and has a huge community of well engineered libraries for almost all mundane tasks. Theres great testing tools and general quality tool alike PHPStan. There’s an enormous pool of talent to hire from. I code mostly in node nowadays, not through ch…

There are other languages receiving way more praises like Python that at the end of the day are just lacking so many features that php gets right but still php is the bad guy.

Well, many of the Python fans are fresh graduates. They have been taught python because it's an easy language - no proper classes, little use of design patterns, coding standards and so on. The reality is PHP is still a thing, and will be a thing for a long long time. There is a package for anything you need in composer, and unlike most python libs, these have been tried and tested in production far longer.

Re: The Future of PHP

#32
post #16

It’s exhausting seeing these kinds of discussions. The only people who think PHP is dying is those who don’t use it. Besides the languages quirks, it’s incredibly productive and has a huge community of well engineered libraries for almost all mundane tasks. Theres great testing tools and general quality tool alike PHPStan. There’s an enormous pool of talent to hire from. I code mostly in node nowadays, not through ch…

>The only people who think PHP is dying is those who don’t use it. That is absolutely not true. I didn't care about PHP at all when I didn't use it. Then I got a job where I had to use it (and the management didn't want to hear about changing it), and I started slowly disliking it. Then I got out of that job and again mostly forgot about it and curretly don't really care what happens to it. Weird defences like yours…

The more accurate statement would be: The only people who think PHP is dying is those who is not using it

I had a similar experience as you. I used it for a couple of projects for a 1-2 years. When I realized PHP was an overpowered template engine, I started to think that it will be dying and moved on.

Re: The Future of PHP

#33
I feel like I see this topic pop up every few months, pretty tired, and the article itself doesn't offer anything new or worthy data...

I feel that PHP is here to stay and future releases like 7.4 and 8 are going in the good direction. I'm pretty happy with the health of the ecosystem and how the language has improved over the last years.

Re: The Future of PHP

#34
It’s not dead but there’s no point in learning it if you don’t know it already. Pretty much every language used for web development is better than PHP. Python is more consistent and has better support for async code. JavaScript can be used on backend, web and mobile, Java and C# are faster and have better typing

Re: The Future of PHP

#35
post #21

Earlier quoted context omitted.

So, given you "don't care what happens to PHP", I assume you don't give much heed to whether it's winning or dying. That's basically what @deanclatworthy is saying, so there is nothing to fight about. Cheers!

I'm not fighting, I just gave a single data point that invalidated (logically, not actually) one part of his argument (the one I quoted) :) And then a bit of commentary.

The argument isn't that every person not using PHP thinks it is dying. As such, I don't see how your response invalidated it.

Also, the statement "that is absolutely not true" should probably be backed up by more than your single data point.

Re: The Future of PHP

#36
post #16

It’s exhausting seeing these kinds of discussions. The only people who think PHP is dying is those who don’t use it. Besides the languages quirks, it’s incredibly productive and has a huge community of well engineered libraries for almost all mundane tasks. Theres great testing tools and general quality tool alike PHPStan. There’s an enormous pool of talent to hire from. I code mostly in node nowadays, not through ch…

>The only people who think PHP is dying is those who don’t use it. That is absolutely not true. I didn't care about PHP at all when I didn't use it. Then I got a job where I had to use it (and the management didn't want to hear about changing it), and I started slowly disliking it. Then I got out of that job and again mostly forgot about it and curretly don't really care what happens to it. Weird defences like yours…

> Then I got out of that job and again mostly forgot about it and curretly don't really care what happens to it.

Yet you made an account here today for this story to tell people how you don't care and why python is better than PHP.

Are you sure you don't care?

Re: The Future of PHP

#37

For me PHP is exactly like IE6, it completly shaped web programming as we know it, and will have a true resilience, before dying, inevitably (disclamer: I used PHP from 2000 to 2009 , then switched to rails on a daily bases).

You may want to take a look at Laravel.

Sorry, I did. I made a quick return to PHP in 2016, being so happy to try Laravel on a real big project. So ... just pure disappointment ;( ;(

It is 4 time more verbose than rails and not fully compliant. Laravel is purefect for people knowing only PHP, it is a real nightmare for rubyist. ;(

Re: The Future of PHP

#38

It’s exhausting seeing these kinds of discussions. The only people who think PHP is dying is those who don’t use it. Besides the languages quirks, it’s incredibly productive and has a huge community of well engineered libraries for almost all mundane tasks. Theres great testing tools and general quality tool alike PHPStan. There’s an enormous pool of talent to hire from. I code mostly in node nowadays, not through ch…

The price of php4 days man

Re: The Future of PHP

#39
post #7

I’ll save you the bother of reading 966 words: No, it’s not. To me, it’s never been a better time for PHP.

Recently I was asked to help out with a PHP project for work, I made the switch to rails almost a decade ago & haven’t looked back since so I was excited to see how PHP felt. I was fairly impressed with how easy it was to jump back to PHP, the documentation is full of examples, there is composer for package management and it has a strong community who meets up regularly.

Exactly. Composer is key here. Pear just didn't work well as a third party bolt on. As a result monolithic frameworks such as Zend Framework were born, along with Blogs, come CMS come frameworks. And Rails clones. It's still hard to navigate the 3rd party landscape, but integration is so much easier.

My main gripe with Php is editor support. Jumping around a code base is hard when you introduce slightly abstract class loading. The more 'typed' the language is, I guess makes editor help easier, with auto completion etc. But that is a disjoint or me.

Editor support for functions is useful. I'm slightly embarassed still at the frequency of my manual lookups.

Class autoloading is nice, but functions are left by the wayside on the autoloading front, which is a bit gnarly.

The language is actually quite quick to learn, and you can hold a lot in your head. You can do a lot just with arrays and foreachs, without having to reach into convenience functions.

Most of my time is laboured over other frameworks and interoperability, rather than any really worry about Php itself.

Re: The Future of PHP

#40
I'm not sure I'll start a new project using PHP these days (though the latest Symfony is very good), however I still frequently uses it as a scripting language, as an alternative to Bash. It's perfect for this, easy to use, and can scale to large scripts if needed.
Post reply on HN