Because I see it too often, I started to compile a list of blog posts about PHP shaming and how irrelevant this is.
Le PHP est le langage le plus utilisé au monde. C’est aussi le plus détesté. Et c’est de la haine pure. Mais pourquoi autant de développeur(euse)s le détestent autant ? Aujourd’hui on va aller jusqu’à l’origine de la haine et on va voir si elle est vraiment fondée.
Do you remember the popular "PHP: a fractal of bad design" blog post? The first time I read it, I was working in a crappy place with lots of legacy PHP projects. This article got me wondering whether I should just quit and go do something entirely different than programming. Luckily for me I was able to switch jobs shortly thereafter and, more importantly, PHP managed to evolve quite a bit since the 5.* days. Today I'm addressing the people who are either not programming in PHP anymore, or are stuck in legacy projects.
Remember when I ditched Laravel for Golang? Well, after 2 years on Go, our shop applications are powered by PHP again. Why?! You already said it was probably a bad business decision, and then you spend even more time on it?! Well, yeah, several reasons actually.
The fracas over Gutenberg and WordPress is the latest installment in the death of PHP. Take a deep breath everybody. Let’s ignore the trolls and take a look at what Mark Twain, Fidel Castro and PHP have in common — and more to the point, why PHP is still a reasonable choice for startups and small businesses.
What a small web-based business needs, no matter how big you think you will eventually get, is LAMP. For those who don't know, LAMP is an acronym defining your operating system, web server, database, and programming language. In this case, Linux, Apache, MySQL, and PHP. If you are a business oriented founder or senior non-technical leader and you rely on others to advise you on technology, you have likely heard LAMP (specifically the PHP or MySQL part) is passe, not good enough, "too simple," and doesn’t have the performance you need. That is complete nonsense. Facts...
PHP has a bad reputation among many programmers — some of them because of the language’s past mistakes, lack of standardization, security issues, and code styling. That’s why new programmers don’t see PHP as an valid option for developing their projects. For your information, PHP 7 has overcome so many past issues and improved speed. Now PHP is insanely fast and has type hinting for methods and return types, making the language more consistent.
I have several problems working with PHP on a daily basis, but one cannot close their eyes to the changes taking place in the language, community and the ecosystem. There is a long road ahead, but things are getting mature in the land of PHP.
Programming is an amazingly cliquish community. Every developer has a preferred language with philosophical reasoning or performance rankings to back up the choice. I love the variety we have when picking a technology, it keeps the industry exciting and nimble. However, I hate all of the constant derision that many programmers throw at languages they don’t use.
People shitting on PHP isn’t going to go away, it’s a symptom of a few things. PHP has a ridiculously flat learning curve so just about anyone can write code using it, this means a lot of amateurs and ‘get it done’ developers will choose php but...
It’s well known that PHP is a dead programming language and that its 22-year-old ecosystem is effectively useless now that we have Node and its fancy new asynchronous frameworks. Node’s superiority is evident because everyone knows that single-threaded, asynchronous, programs are better by default.