News for hackers. Stuff that matters.
Re:A look at modern PHP by jamil7 on Tuesday May 05, 2020 @03:56AM (#23077579)
I cut my teeth on it years ago, I don't hate on it for cheap jokes. That said I don't know why anyone would pick it to start a new project in 2020. We've been lucky to have so many new and established options that are better in almost everyway.
Re:A look at modern PHP by p4bl0 on Tuesday May 05, 2020 @04:04AM (#23077633)
I think it depends on the types of project or the target of the said project.

Recently I had to develop a very small CMS that manages personal web pages and it was a requirement that it could be installed very easily (i.e., by copying a single file) on virtually any hosting provider. PHP was (and is) still the natural candidate for such projects.

Re:A look at modern PHP by andrewjmg on Tuesday May 05, 2020 @04:04AM (#23077632)
"so many new and established options that are better in almost everyway"

such as?

Re:A look at modern PHP by manigandham on Tuesday May 05, 2020 @04:11AM (#23077677)
C# (optionally using the ASP.NET framework) running on the fast, efficient, cross-platform .NET Core.

Or Java/Scala/Kotlin. Or Go. Or Python. Or Node + Typescript.

Re:A look at modern PHP by Okawari on Tuesday May 05, 2020 @04:56AM (#23077934)
If my project is "big enough" to warrant something like Laravel, I would just pick Rails or Phoenix over it any day. I find both those languages much better to work in and I just feel like I'm getting things done way faster. If its smaller than that, I'dd definitly just pick go or node with express or go maybe.

I work with PHP 5 days a week through work and even a few years into it, i still do not like it. Its feels like a mess compared to the other languages I work with for my own projects. Even when working with something like Laravel which do mask a bunch of the pain points of the language, it still feels cumbersome IMO.

Re:A look at modern PHP by andrewjmg on Tuesday May 05, 2020 @11:15AM (#23080905)
well, that's your biggest problem. PHP 5 is a steaming pile of dung when compared to PHP 7.
Re:A look at modern PHP by tsukurimashou on Tuesday May 05, 2020 @04:11AM (#23077679)
you can run PHP pretty much anywhere, even the cheapest VPS probably has PHP, as well as all managed hosting. For python, go or other languages it can be more tricky if you're looking for cheap hosting / VPS
Re:A look at modern PHP by manigandham on Tuesday May 05, 2020 @04:13AM (#23077695)
With docker containers and the numerous PaaS/FaaS runtimes, does that really matter? You can run anything just about anywhere these days, cheaply or even for free.
Re:A look at modern PHP by 1bc29b36f623ba8 on Tuesday May 05, 2020 @04:28AM (#23077773)
For us techies, no, it doesn't really matter.

For average business owners who buy a WordPress template and some 5€ hosting in order to set up a business card web site on their own, on the other hand, it matters a lot. So if your project targets that group of people then PHP is pretty much the only option; anything more complicated than an FTP upload/MySQL import is pretty much to advanced for them and they generally aren't interested in learning new skills just to get a web site online.

Re:A look at modern PHP by manigandham on Tuesday May 05, 2020 @04:42AM (#23077854)
Who's doing that anymore? Either you (or your staff) are technical enough to manage installing a web framework on a server, or you use any of the numerous managed sites instead. (Squarespace, Wix, Webflow, Wordpress.com, Shopify, Facebook, etc)

The last thing a non-techie business owner needs is to worry about setting up a random server with bad PHP code.

Re:A look at modern PHP by 1bc29b36f623ba8 on Monday May 11, 2020 @10:20AM (#23142399)
There's plenty of businesses selling business card web sites built on WordPress. They usually install it on whatever hosting the customer orders and then leaves the rest up to the customer.
Re:A look at modern PHP by DocG on Tuesday May 05, 2020 @04:33AM (#23077800)
Yes it matters. This is often unessecary maintenance overhead.
Re:A look at modern PHP by manigandham on Tuesday May 05, 2020 @04:38AM (#23077828)
A docker container is more overhead than managing your own VPC?
Re:A look at modern PHP by currriuosly on Tuesday May 05, 2020 @03:58AM (#23077591)
Just came here to say this.