Live data from Hacker News

PHP is worth learning and using

bulletproofphp.dev

81–90 of 468 posts

Re: PHP is worth learning and using

#81
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.

There is never a best language. You make it sound like PHP is almost worthless in 2021 which is also not true.

Re: PHP is worth learning and using

#82
post #58

Earlier quoted context omitted.

I'm not sure what you mean by platform-oriented.

Well, I’m not trying to invent scientific classifications here, but the common reason to choose one of said languages is to use them with the Microsoft/Apple/Android ecosystems, respectively.

Ok, I'm just trying to understand. Not trying to make you create a scientific classiciation :D I just disagree as a .NET developer.

Re: PHP is worth learning and using

#83
post #77
post #67

Earlier quoted context omitted.

Purely from the outside (I don't really use either), ruby looks more dead than PHP nowadays.

How so? Ruby just released a new version with a JIT and new concurrency model. Rails is releasing a new major version later this year with a bunch of great improvements. Shopify, Stripe and others are putting a ton of improvements into the Ruby interpreter. Many large tech companies still use it. Many startups still use it. If nothing else, it's still a popular scripting language. It's not as 'trendy' as it once was,…

> How so? Ruby just released a new version with a JIT and new concurrency model. Rails is releasing a new major version later this year with a bunch of great improvements. Shopify, Stripe and others are putting a ton of improvements into the Ruby interpreter.

Do all of these make it faster than PHP?

Re: PHP is worth learning and using

#84
post #50

Earlier quoted context omitted.

Fine: python, ruby, go, rust, elixir, c, java, javascript, plenty more. Pick whatever you want. Just don't pick a language that is known to be on it's last legs.

Ya, but PHP is actually still being used in a lot of agencies and in certain types of work. Far more than elixer and rust, probably just below ruby. Also I wasn't pointing out what you say, you're reading into it a bit. I haven't used PHP in a long ass time. But it seems like not a bad choice for certain markets, at least as much as Python and Ruby imo

PHP is used far more than Ruby. Wordpress alone dwarfes any Ruby usage.

Re: PHP is worth learning and using

#86
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.

There is never a best language. You make it sound like PHP is almost worthless in 2021 which is also not true.

There is probably a set of "good languages to learn" for every individual. There are two good reasons to learn a programming language:

1. You're using it for actual work

2. Learning it will teach you something fundamental

I feel like the only way 2. might happen with PHP is if it's the first language you're learning.

Re: PHP is worth learning and using

#87
post #78

Earlier quoted context omitted.

Why are y'all arguing about this when you already learned like 20% of php by reading the OP. Learning enough of a high level scripting language like php to be able to be useful and productive in it is not some huge time sink, it's a few dozen hours of reading docs and tinkering

Opportunity cost. Those "few dozen hours" reading PHP docs and tinkering could also be used to learn Python, Ruby, or Javascript, each of which are almost certainly better choices with broader applicability and more modern ergonomics. Python gets you web backend + ML, Javascript gets you web backend + web frontend. Ruby gets you a multi-paradigm language with nice ergonomics and cats. PHP gets you job offers customiz…

Not that I code in PHP anymore, and I havent for years (felt like I had to say that).

But PHP is a quite nice language with a lot less ceremony than many other languages. Especially nowadays as the article says.

Go make a Wordpress site!

Re: PHP is worth learning and using

#88

I have used PHP for years. Like it. Have accomplished some nice things with it. Think it's evolved nicely in recent years. Feel it's a great tool for particular problems. Will continue to use it. Will always be open to alternatives. Will never understand why some people find that so offensive and will tell you that you mustn't use it or imply that you are ignorant or stupid for using it.

You’re writing style is unique and grabbed my attention. Any tips to write like that?

You didn’t use “I” at all, but it seems likely there are some other rules going on here.

Re: PHP is worth learning and using

#89
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.

Why are y'all arguing about this when you already learned like 20% of php by reading the OP. Learning enough of a high level scripting language like php to be able to be useful and productive in it is not some huge time sink, it's a few dozen hours of reading docs and tinkering

PHP has a lot of quirks that have to be learned so that they can be avoided. It's a bit of a time sink in that way, and the sort of time sink that doesn't accumulate new skills that could be applied elsewhere.

Re: PHP is worth learning and using

#90
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 have to learn a new language for some reason and you don't know what to pick, go for something that has things you've never done before. Perhaps consult TIOBE for extra data points if you value current popularity.

Some popular choices in this bubble seem to be:

- clojure

- common lisp for some reason

- php is mentioned often here, also not sure why

- rust

- swift if you're into ios/apple, kotlin if you're into android

- typescript

Post reply on HN