Live data from Hacker News

Why Developers Hate PHP

jesuisundev.com

21–30 of 114 posts

Re: Why Developers Hate PHP

#21
post #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 opini…

They might think you expect them to dislike it. Also, maybe they fear if they say they like PHP you'll take points off.

Re: Why Developers Hate PHP

#22

https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ is a classic of this genre.

pick a random language, ruby, python, javascript etc etc and you'll find similar rants/complaints. Yet I think right now it's cool to shoot on PHP therefore everyone is more vocal

Re: Why Developers Hate PHP

#23
post #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.

Why do you prefer it over say, Flask or Django?

Re: Why Developers Hate PHP

#24
post #8
post #6

I couldn't find a date on this article, but I don't think this line is accurate anymore: "Facebook, Wikipedia, Yahoo, Flickr, Tumblr all these sites run in PHP and welcome millions of users every month without flinching." Facebook dropped PHP for their own language called Hack, which I think is based on PHP but with a lot of the things people complain about changed.

> but with a lot of the things people complain about changed. and some of those things have changed in base PHP as well too.

I think it might even cross compile in some fashion.

Re: Why Developers Hate PHP

#25
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…

I'm currently on a project building A CQRS system in PHP (not the first time) . I have no idea what you are basing this on.

Re: Why Developers Hate PHP

#26
I will say this for PHP: Its interaction with my brain had such a nearly-disastrous impact on my life, that it finally allowed me to finally get the mental health treatment I'd been seeking for a decade, and to realize the fundamental and unfixable weakness of my marriage.

-------------------------------------------------------

If you enjoy eating pad Thai, that is great for you. I do too. But different people are different and the effect of peanuts on some people are quite dramatic yet real.

Choosing not to work with PHP is no more elitist than choosing not to eat gluten or peanuts.

Re: Why Developers Hate PHP

#27
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…

wordpress would be a slow, massive, lumbering mess in any language. It happens to be in PHP but you would get same result if it was built in python or javascript. Any dynamic language in the wrong hands can lead to that same result, at least PHP managed to introduce stricter typing and so on while other languages have arrived way later (Javascript must use TypeScript and Python is going through a slow and painful migration out of Python2)

Re: Why Developers Hate PHP

#28
There was a tech talk I saw on Youtube a few years ago that I really liked that argued that Facebook succeeded because of PHP, not despite it.

IIRC, the main argument was that despite its flaws, PHP has one killer feature, which is that it lets you have really tight iteration loops for web development. This made developing in PHP extremely productive.

I searched around for the video, but couldn't find it.

Re: Why Developers Hate PHP

#29
post #6

I couldn't find a date on this article, but I don't think this line is accurate anymore: "Facebook, Wikipedia, Yahoo, Flickr, Tumblr all these sites run in PHP and welcome millions of users every month without flinching." Facebook dropped PHP for their own language called Hack, which I think is based on PHP but with a lot of the things people complain about changed.

Wordpress. Over a third of the web is Wordpress.

Re: Why Developers Hate PHP

#30
I don't like having to hold 'shift' while pressing '4' all the time. Other then that I don't think the language is bad and where you cannot do what you're needing to do. If only I could get rid of the need for $ signs everywhere.
Post reply on HN