by awestroke · 3y ago · 0 comments
Now the small PHP community keeps trying to justify their language choice with articles like these and comments like the ones on this submission. They claim it's a no brainer to use Laravel for new apps, because it has a big ecosystem and good ergonomics, and pretend that this description somehow does not apply to hundreds of other frameworks. They claim that the article A Fractal of Bad Design (which was really cathartic to me when it came out) is out of date, but when I look, all the old footguns are still there, all the problems with the standard library are still there and stdout still writes directly to the browser. The foundations are rotten.
Go ahead and use it, I don't care, but stop trying to convince me to use it.
And now the downvotes begin. PHP devs hate dissent it seems.
Personally, as my username might hint, I've been using PHP for a long time, and, as I've commented on HN before, I would not choose PHP if I was building an engineering organisation from the ground up, and I do not use PHP professionally at the moment, but I absolutely choose to use PHP for my own projects and can enthusiastically say it's a great language in 2023.
If you're not willing to try out modern PHP, that's fine, but ranting and raving about PHP based on your experience more than a decade ago is not relevant any more, given this is a post about the improvements made in the last decade. Many people with experience beyond PHP think PHP is a great language today.
> They claim that the article A Fractal of Bad Design (which was really cathartic to me when it came out) is out of date, but when I look, all the old footguns are still there, all the problems with the standard library are still there and stdout still writes directly to the browser.
"Yes, yes, the footguns are still there front and center, but we added more guns that don't shoot you on the foot."
If I was using PHP, I'd be livid that the cruft is never removed. Just deprecate and remove it
You have to ask yourself why such a large proportion of work gets done in two objectively bad languages, PHP and Javascript. They dominate the space. I think it tells us that it's not actually that important to have a 100% perfect language, when it comes to building stuff.
Learning PHP though is exactly as the article describes. I had to do it in college and even using a modern version of PHP, the language felt as if it had been written by 3 first semester students under pressure to meet a deadline.
> You have to ask yourself why such a large proportion of work gets done in two objectively bad languages
I did ask myself that, and I came to the same conclusion as the author of "Fractals of bad design": The majority of work gets done by amateurs and amateurs, per definition, don't know any better.
I mean, write stupid comments win stupid prizes?
> Now the small PHP community keeps trying to justify their language choice with articles like these
How would you expect people to react when you frame it like that. I assume you're one of those people that think you have good opinions, but wonder why others don't want to hang around and hear them.
Are those all small communities too?
https://i.stack.imgur.com/Jteqd.png
I'm sure theres also still tons of skilled engineers for Perl around. Or Fortran. Definetely Java. But the TIOBE index looks more like taking inventory of existing skill throughout the industry and less like it tracks disruptive trends.
If WordPress moved to a modern language tomorrow, PHP would cease to exist afterwards.
But there's also Typo3, Spryker, Magento, Drupal, Shopware, Sylius.
I won't touch Wordpress. I worked with it about 15 years ago for a few years, but didn't touch it afterwards.
And moving WP to a 'modern' language (whatever that modern means) is not something possible. ~60,000 plugins, similar number of themes, 30% of all ecommerce websites, billions of dollars of businesses with dependencies ride on it.
> Right now, WordPress only has beta support for PHP 8.0. Now, to be clear: PHP 8.0 was released in 2020, and is now end of life, three years later — and WordPress doesn't yet support it…
There are dozens of alternatives better than WordPress, if upgrading it meant a complete tooling change I think many would take the opportunity to replatform to something else. The only thing WP really has over them is it's expansive plugin library, and buy in from clients.
But it's not really up to devs. I don't think many devs believe it's the best system, but it is desired by clients very often.
The expansive plugin library that WP has is due to its ease of use, stability and the extent it goes to acommodate users, developers and businesses at the same time. Its no small factor, its no small feat.
Craft, Kirby, Twill, October, Grav, Statamic, Bolt, Processwire… All of those projects have big active ecosystems around them and are used for serious projects. Most other languages dont have a single CMS. There is no CMS in Go or Elixir. Javascript have some but they are super immature and mostly hype. Python has some super ugly ones based around Django.
Now people may look down on these PHP cmses but many web projects like ecommerce grow as extensions of CMS. And most of these CMSes are suited to this because they are nice web framework with customizable admin area. So it often doesnt make sense not use PHP.
> PHP devs hate dissent it seems.
Perhaps, but do they hate dissent as much as non-PHP devs hate PHP?Language wars are silly.