Live data from Hacker News

Why Developers Hate PHP

jesuisundev.com

11–20 of 114 posts

Re: Why Developers Hate PHP

#11
post #4

Here to see how many comments don't bother reading the piece and just react to the title.

I didn't, skimmed. > PHP is the most widely used language in the world for websites. Being served does not equate to being used to develop new things. Is there really that many new websites, website features being authored in PHP? Sure there is maintenance work and some popular platforms are written in it. But beyond that? I haven't seen a job posting in long time.

It consistently makes the list for any analysis of "top X languages by job posting" I can find.

Re: Why Developers Hate PHP

#13
post #3

PHP being awful annoys me so much more than javascript being awful. At least for the latter the use became mostly unintentional. For PHP, the problem is that it came about at just the right time to be picked up by WordPress and Facebook, hence encrusting itself in most of the web we see. I dislike WordPress the same way I came to dislike Visual Studio or any other monstrosity. It's a slow, massive, lumbering mess but…

PHP via HHVM + Laravel is a still top choice for new projects imo.

Re: Why Developers Hate PHP

#14
post #4

Here to see how many comments don't bother reading the piece and just react to the title.

I didn't, skimmed. > PHP is the most widely used language in the world for websites. Being served does not equate to being used to develop new things. Is there really that many new websites, website features being authored in PHP? Sure there is maintenance work and some popular platforms are written in it. But beyond that? I haven't seen a job posting in long time.

I'm using it at a fresh start up. Having used node, internal Google frameworks, python, and dart previously, I would highly recommend PHP for new projects. Laravel is what makes it worth it imo.

Re: Why Developers Hate PHP

#15
post #4

Here to see how many comments don't bother reading the piece and just react to the title.

I didn't, skimmed. > PHP is the most widely used language in the world for websites. Being served does not equate to being used to develop new things. Is there really that many new websites, website features being authored in PHP? Sure there is maintenance work and some popular platforms are written in it. But beyond that? I haven't seen a job posting in long time.

I don't understand this response. You are proud you didn't read the article? Does it add any value to the conversation to just pull out one sentence and react to it out of context?

The only thing I can think of is that HN rewards early responses with more karma, so people feel a need to rush past the "reading" and "thinking" parts and just skip to the "responding" part to rack up more internet points. Perhaps HN should look into ways to rework things to reduce or remove that incentive.

Re: Why Developers Hate PHP

#17
> Most developers who hate PHP hate it out of elitism or ignorance. Either way it’s dumb. You have to choose a technology based on what you need. PHP is highly useful and powerful in many scenarios. And taking it out of the equation just because of its reputation is not a good idea.

When I conduct hiring interviews, one of the questions I like to ask regardless of the language for the position, is the developer opinion on PHP.

It's not uncommon for some to start massive rant based on outdated or outright wrong statements about PHP. Most of them never even used PHP.

It's a nice question to filter out elitists. The best candidates usually answer either "can't say because I have never used PHP" or state pros and cons of PHP based on their experience.

edit: quick -3 downvotes. I suspect I hit a nerve in some elitists who would not get that Rust or Haskell position because they would have baselessly trashtalked PHP in my interviews.

Re: Why Developers Hate PHP

#18
post #13
post #3

PHP being awful annoys me so much more than javascript being awful. At least for the latter the use became mostly unintentional. For PHP, the problem is that it came about at just the right time to be picked up by WordPress and Facebook, hence encrusting itself in most of the web we see. I dislike WordPress the same way I came to dislike Visual Studio or any other monstrosity. It's a slow, massive, lumbering mess but…

PHP via HHVM + Laravel is a still top choice for new projects imo.

Why with HHVM? PHP7 is pretty fast, I believe the fasted non-compiled language there is.

Re: Why Developers Hate PHP

#19

That "article" spent half its time leading up to explaining why PHP is bad and half its height on GIANT MEMES. The actual content was half a paragraph about how PHP lacks strong conformity... needless waste of bits

I thought it was entertaining had a good bit of history. It does a good job of empathizing with the reader and then shedding light on why they might want to change their opinions on PHP.

Re: Why Developers Hate PHP

#20
There is no web framework out there which comes with such elegant concepts, syntax and feature-richness like Laravel. I have seen them all - Laravel is incredibly good, especially for small - mid sized projects! And this statement comes from a python guy.
Post reply on HN