phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

792
active users

Comparing a backend technology with front-end ones...

How is #PHP doing versus #dotNet, #Java, #golang and #Nodejs?

@sirber I think for web apps PHP is dying out compared to Python and NodeJS. with Python you get advantage of a skill set that also needed by lots of ML and data/ETL pipeline work. Golang is great choice for a network service or anything needing lots of threads with rock solid concurrency safety and a good builtin GC

The web market is mostly dotNet and Java these days, for the big enterprises.

@sirber thinking about my recent job search, and my previous job searches are pretty similar to what you've seen. It's still possible to find jobs that use PHP, but there's a higher number of .NET or Java jobs. 3 of the 4 full-time jobs I've had were working in a legacy codebase that had been around at minimum 10 years. However, there were no regrets with it being a PHP codebase.

@synlogic @sirber a selling point for PHP over Python for web requests is FPM. There's Django but it's a web framework, and to my knowledge, it still requires configuring a web server to handle the requests to the Python backend. Apache has mod_php and nginx has php-fpm which makes it incredibly easy to get up and running in a new project. PHP supports fibers, and there's openswoole for concurrency, but admittedly my experience there is limited. PHP's garbage collection is also pretty solid.

I never tried python on the web. I'm always reading that python is slow.

For new PHP projects, I like frankenphp. It's Caddy with built-in phpfpm. Add usual, URL rewriting is always troublesome to setup.

@synlogic @sirber (Yes, I like PHP. My intent in responding is not to be malicious or hostile, only to provide some counter-points because. It has a bad reputation for reasons that were true 10+ years ago, but no longer apply now. However, there are valid criticisms that still exist now, and I'm not going to say it's the perfect language, cause it very much isn't.)