Live data from Hacker News

PHP is worth learning and using

bulletproofphp.dev

61–70 of 468 posts

Re: PHP is worth learning and using

#61

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.

For people of a certain age and job history, the worst code they've ever inherited was written in PHP.

I think JS can be worse. There are things that are possible with dynamic languages that are literally impossible with static ones.

So think of PHP less as a "bad language" and more of a code smell.

Re: PHP is worth learning and using

#62
Promoting php is truly a head in the sand attitude. Yes there is valuable old software, but come on. Move on if you don’t have to touch it. Stop being oblivious and rejecting advances in programming language design. That probably goes to a lot of other languages too.

Re: PHP is worth learning and using

#63
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

Compare what the PHP jobs pay or the career path they put you on compared to elixir or ruby. Not even the same ball park. Not even the same sport.

Re: PHP is worth learning and using

#64

Earlier quoted context omitted.

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

Python, JavaScript, Java, C# have all had great longevity, and much more popular, and can do anything that you can do w/ PHP and a whole lot more. Encouraging new programmers to learn PHP is cruel.

I'm still seeing shared hosts offer PHP everywhere at very cheap prices.

That's not true for Java or C#.

Re: PHP is worth learning and using

#65
post #50
post #46

Earlier quoted context omitted.

But what is, if not Visual Basic? Do you shoot for what has had longevity, or what's rising? But what is, if not Motorola 68000 Assembly? Do you shoot for what has had longevity, or what's rising? Pointing out that there is not absolute certainty about what is the top choice for a better idea does not make php, or visual basic, or 68000 worth spending your time on in 2021.

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.

> Just don't pick a language that is known to be on it's last legs.

I’ve heard that exact sentiment over and over since the RoR community aggressively started with their anti-php agenda in about 2006.

Re: PHP is worth learning and using

#66
post #63

Earlier quoted context omitted.

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

Compare what the PHP jobs pay or the career path they put you on compared to elixir or ruby. Not even the same ball park. Not even the same sport.

> Compare what the PHP jobs pay

Where? At Facebook? Or somewhere else?

Re: PHP is worth learning and using

#67
post #50
post #46

Earlier quoted context omitted.

But what is, if not Visual Basic? Do you shoot for what has had longevity, or what's rising? But what is, if not Motorola 68000 Assembly? Do you shoot for what has had longevity, or what's rising? Pointing out that there is not absolute certainty about what is the top choice for a better idea does not make php, or visual basic, or 68000 worth spending your time on in 2021.

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.

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

Re: PHP is worth learning and using

#68
Hmmm... Most points in this article are shouting "yeah we have those too!!" but it didn't give any convincing arguments why I (or anybody who doesn't already know PHP) would like to learn and use PHP over other decent modern languages and ecosystems, which happen to have those points as well.

Re: PHP is worth learning and using

#69

Folks bashing PHP like it's crap but praising any crappy thing if it's built with an esoteric lisp-based language. I mean, if you're starting out, chances are you're better off with js/py or even go but in the end you're paid for the types of problems you solve, not by the language you use... It just turns out that some problems are easier in this or that language, or even people who are good at solving this or that…

R is another language that it is bashed constantly, but it is generally much productive in its field (EDA and stats on structured data) than the alternatives like Python.

Re: PHP is worth learning and using

#70
For me the main turndown of using PHP is when I need to host the PHP website, php-fpm and Apache+mod_php seem to be the only two options. (FastCGI doesn't even have a proper specification).
Post reply on HN