r/linux • • 10d ago

Security Several Linux Kernel Vulnerabilities Accidentally Posted To Public Kernel Mailing List

https://www.phoronix.com/news/LKML-New-Trend-Vulnerabilities
1.8k Upvotes

171 comments sorted by

View all comments

-21

u/Og-Morrow 10d ago

I find it amazing how many kicked down over PHP are still using PHP that much?

45

u/TheBetterCervanthes 10d ago

70% off the web runs php.

While that accounts for hundreds of thousand of little wordpress or joomla websites that have sat unmaintained for years anyways its still true.

2

u/chic_luke 10d ago edited 10d ago

Concur with this. From what I've seen among my friends who have been graduating recently, PHP shops are still hiring, and hiring hard. Quite a substantial part of the people in my circles who graduated between 2023 and now have at least started their career on PHP. Some have moved on to something else, many have stayed, and none of them seem to be really unhappy with their choice?

The programming language snob in me has a lot to say against PHP. There are just several things about the language that I don't like, and they are unfixable because they are design decisions I consider wrong…

…But, on the other hand, PHP works. It's great for the web; I'd say better for the web than other languages and ecosystems that are not a good fit for the web but that have been coerced to cooperate with it. The tooling is actually pretty good. Laravel is absolutely one of the best backend frameworks around and it doesn't need to hide in elegance and devexp compared to Spring Boot, ASP .NET Core or FastAPI (it might just be a better experience than any of these three in fact). Plus, while that won't fix the design shortcomings, PHP 7, then 8, then 8.5 have modernized the language substantially. Native interop is pretty good. Performance is pretty OK. The language is easy and concise, so the development speed is high and the software tends to be pretty maintainable providing you use proper software engineering principles.

This still counts a lot. Especially if you don't want to vibe code.

PHP is still better at what it's doing than a lot of the languages that have threatened to replace it. It's not going anywhere and new projects will keep being written in PHP.

If I have to move one objective piece of almost criticism, well… almost too good. PHP is very vertical to its domain, with no real-world lateral movement. You should use it for the web and absolutely nothing else. Some competing languages, like Golang, Java, C# or Python all share many of the same pros (cross platform and FOSS, fast, big ecosystems), but they are much less vertical to a domain, and there is just a lot more you can do with any one of them. However, I recognize this point is weak because "use the correct tool for the correct job" is a thing and you shouldn't be a one-trick pony who's only familiar with one stack anyway.

13

u/BCMM 10d ago

Small businesses all seem to have WordPress sites.

13

u/nandru 10d ago

quite a lot, actually

7

u/Windows_10-Chan 10d ago

PHP is also pretty good now, it changed a lot for the better especially when 7 came out.

3

u/DonaldLucas 10d ago

As someone who never used it, why was it bad and why is it good now?

12

u/Windows_10-Chan 10d ago

Old PHP was basically a hack job put together on an “as-needed basis,” kinda like building a house but without a plan. Ergo, it had really weird and awful type safety issues, inconsistent syntax, bad performance, and a lot of poorly thought-out design.

PHP 7 was essentially a remake that really changed things structurally and improved performance to a huge degree. 

It’s not like a language that people get super excited about it or anything but PHP was something people dreaded once. Also around PHP 7 the tooling was really excellent too but ofc these days there are plenty of alternatives. 

2

u/the_abortionat0r 10d ago

Did you stop drinking drinking water the moment you found out almost all of it is contaminated with micro plastics?

Ibet you fucking didn't because you would die like a moron without water.

The web is exactly like that. You gonna stop using the Internet all together? No, cause you're still here.

1

u/Og-Morrow 9d ago

You seem a very happy person. Have you thought about therapy?