12
submitted 3 months ago by Emperor@feddit.uk to c/php@programming.dev

In conclusion, it is easy to see PHP in 2024 as the forgotten child of web development, while JavaScript is the most popular kid in class. Sadly for PHP, its decline in usage is unlikely to stop any time soon — why would it, when WordPress developers are busy adapting to a new JavaScript paradigm? But at least there is active development at the PHP Foundation.

top 9 comments
sorted by: hot top controversial new old
[-] thesystemisdown@lemmy.world 7 points 3 months ago* (last edited 3 months ago)

That article makes little sense. There is not a non-php version of WordPress at this time. I know Gutenberg uses Node and NPM, but the heavy lifting is still PHP. There has always been client side scripting and server side scripting with WP. I'll buy that devs are lobbying clients to use something else, but to say this is because WordPress is driving the change can't be right.

[-] Emperor@feddit.uk 2 points 3 months ago

That article makes little sense.

Yes, they seem to have WP blinkers on.

It is far more likely that this is from the rise of "sexier" server-side coding languages like Rust. Now I don't know much about Rust (although I will look into it more) but I a bit of Googling on Rust vs PHP a while back and PHP is still a solid choice for a lot of things and there seem to be a lot more people out there who can code in it, making it a.good choice for FOSS projects.

[-] TWeaK@lemm.ee 4 points 3 months ago

I hate JavaScript, along with the whole of web 2.0 and moving shit around as it loads, making the user wait to input rather than taking the input and processing as quickly as possible, and in general the whole theme of software no longer being designed for the user to use but for the publisher to extract value from the user.

[-] tsonfeir@lemmy.world 1 points 2 months ago

PHP is great when you use it right. The problem is, most people don’t use it right. That old way of rendering html through PHP, or worse, injecting PHP into html, is antiquated.

IMO, PHP is a great language to use for making your backend API. Use whatever flavor of the week on your front end.

[-] Olissipo@programming.dev 1 points 2 months ago

Aren't you only saying, indirectly, that server-side rendering is "antiquated"?

Unless you mean that mixing logic with templates is bad, in which case I agree.

[-] tsonfeir@lemmy.world 1 points 2 months ago

Well, both?

There’s always a use for server rendered html. Maybe JavaScript is an issue. But it’s usually not. The list is pretty short though.

I can’t think of many situations where I would say yes if I asked myself “if you could re-do the system today, would you still choose server-rendered html?”

I’m sure other people have use cases where it would make sense. I build admin utilities and ERP stuff.

[-] Olissipo@programming.dev 1 points 2 months ago

That's a valid opinion. And I admit that at some point you must move to some form of client-side rendering.

I still haven't (for some admin panels too, and websites), so I don't feel the need to switch.

[-] tsonfeir@lemmy.world 1 points 2 months ago

Well, if it ain’t broke, and you’re not getting paid to refactor it, don’t fix it.

[-] spartanatreyu@programming.dev 0 points 3 months ago

TIOBE index, literally in the first sentence...

PHP leaves a bad taste in my mouth and I'd be happier if we were rid of it (or it continued changing for the next 10 years), but even I can see this article is worthless.

this post was submitted on 25 Apr 2024
12 points (80.0% liked)

PHP

519 readers
1 users here now

Welcome to /c/php! This is a community for PHP developers and enthusiasts to share and discuss anything related to PHP. From the latest updates and tutorials, to your burning questions and amazing personal projects, we welcome all contributions.

Let's foster an environment of respect, learning, and mutual growth. Whether you're an experienced PHP developer, a beginner, or just interested in learning more about PHP, we're glad to have you here!

Let's code, learn, and grow together!

founded 1 year ago
MODERATORS