Live data from Hacker News

PHP is worth learning and using

bulletproofphp.dev

31–40 of 468 posts

Re: PHP is worth learning and using

#32
post #7

This seems like a false dichotomy. Is php totally worthless in 2021. Absolutely not. Is php the best language to spend your limited time learning in 2021? Almost definitely absolutely not as well.

But, what is, if not php? Do you shoot for what has had longevity, or what's rising?

Re: PHP is worth learning and using

#33
post #11

PHP is an ok language for web frameworks. But for most other things, it is a poor fit. There’s a reason why people are generally not doing scientific computing, machine learning, hardware integration, systems programming, etc. in PHP (yes, there are likely some obscure projects doing all of those, but in general, it’s not done because of limitations in the PHP runtime). If you already know PHP, you can probably have…

There's nothing platform-specific about C# and Kotlin.

In theory, true. In practise, they are most popularly used for the Microsoft and Android ecosystems, respectively. I’ve reworded it to platform-oriented.

Re: PHP is worth learning and using

#34

I have used PHP for years. I like it too. Its tight integration with http is nice. The PHP language can be used as a templating language itself: Hello

I think* with ASP.NET Razor Pages. You can do the same thing as:

  @page
  @{
    var user = "root";
  }

  

Hello @user

Re: PHP is worth learning and using

#35
post #7

This seems like a false dichotomy. Is php totally worthless in 2021. Absolutely not. Is php the best language to spend your limited time learning in 2021? Almost definitely absolutely not as well.

But, what is, if not php? Do you shoot for what has had longevity, or what's rising?

If you could predict the future, it'd be easy. And you can pretty much learn any language.

The question is who's hiring/where will you work, and what will you work on? In my area, there aren't many PHP shops. So it could be Wordpress or Facebook/Meta. PHP might be long-lived, but if you have to relocate to find a PHP job, does that help? Same with e.g. COBOL, Sharepoint, etc. And to be fair, what's rising has that problem outside tech centres.

Something popular like Python is generally a "better" investment, covers more bases.

Re: PHP is worth learning and using

#36
post #7

This seems like a false dichotomy. Is php totally worthless in 2021. Absolutely not. Is php the best language to spend your limited time learning in 2021? Almost definitely absolutely not as well.

But, what is, if not php? Do you shoot for what has had longevity, or what's rising?

I can’t tell if you’re arguing for PHP or against COBOL. I kid, but a lot of the other languages/ecosystems people will consider investing in are at least as old and evolving right alongside PHP. Many of them with very similar evolutions.

Re: PHP is worth learning and using

#38

Earlier quoted context omitted.

But, what is, if not php? Do you shoot for what has had longevity, or what's rising?

I can’t tell if you’re arguing for PHP or against COBOL. I kid, but a lot of the other languages/ecosystems people will consider investing in are at least as old and evolving right alongside PHP. Many of them with very similar evolutions.

Ya that's basically what I was getting at. Not about COBOL, but about others that are similarly long lasting in the market, dynamically typed, and general purpose.

Re: PHP is worth learning and using

#40
I’m going to try to offer a positive take from a non-PHP-fan perspective: yes it’s obvious both from vaguely checking in on the language’s progress and from the article’s presentation that PHP has made considerable strides. It’s impressive how much, over that time, it’s become less insular and much more readily adopted similar improvements to similar languages. The object over time, for example, more and more closely resembles TypeScript, and that’s a good thing.

I haven’t worked in PHP for I don’t know how many years, and I probably still have an unfair negative reaction to it. It has a strange cultural idiosyncrasy I find more limiting than anything about the language itself. But I’m happy to see it evolve and I’m happy to see it evolve alongside other technologies I work with more readily.

Post reply on HN