For me the main turndown of using PHP is when I need to host the PHP website, php-fpm and Apache+mod_php seem to be the only two options. (FastCGI doesn't even have a proper specification).
swoole is a pretty interesting alternative as it allows asynchronous programming in PHP. roadrunner is a PHP server developed using golang, utilizing goroutines for high performance. both used by Laravel Octane, providing very easy integration with the framework. Other than that, php-fpm & FastCGI allows integration with many interestin webserver including Nginx, Caddy, Lighttpd, etc.
PHP is worth learning and using
181–190 of 468 posts
Re: PHP is worth learning and using
#182Earlier quoted context omitted.
IDK what is a good salary in US/Canada, I live in European Union. My salary as WordPress developer is more than 4,5k USD/month and I see job offers with 8k USD as well (still for WP developers, this is my specialization and I know this field the most; I expect for better recognized PHP fields like modern frameworks like Laravel it could be more) And yes, 4,5k USD/month is massively good salary for Europe. On the othe…
I also live in the EU, and 4,5k is not a massively good salary for a programmer in my country (Denmark). This is usually what a junior is paid.
Re: PHP is worth learning and using
#183As someone actually did (re)learn PHP (last time I used PHP was PHP4) last year for a gig, I would probably say no. Don't get me wrong, it is a much better language now and Laravel is a great framework. With the two you can no doubt build fantastic applications. But I didn't feel it was 'better' in any way than anything else. With Python, Go, Rust, Elixir, TypeScript etc. I can all point to a thing they do and say "i…
Re: PHP is worth learning and using
#184As someone actually did (re)learn PHP (last time I used PHP was PHP4) last year for a gig, I would probably say no. Don't get me wrong, it is a much better language now and Laravel is a great framework. With the two you can no doubt build fantastic applications. But I didn't feel it was 'better' in any way than anything else. With Python, Go, Rust, Elixir, TypeScript etc. I can all point to a thing they do and say "i…
Don't get me wrong, I would not like to use older php these days. But just throwing 2 files onto an ftp was always php's biggest strength. It somewhat retains that for "installing" php, which still is often just "copy to server" which makes it really nice for users. But I feel it mostly lost that ease of use for people learning to program.
Now, it is still a solid language considering performance and such. It has proven itself to be. But without the easy way from zero to programmer, I am also not sure it is a better choice than anything else. Especially since it always had so many terrible footguns and at least in my opinion is also atrocious to look at.
Re: PHP is worth learning and using
#185As someone actually did (re)learn PHP (last time I used PHP was PHP4) last year for a gig, I would probably say no. Don't get me wrong, it is a much better language now and Laravel is a great framework. With the two you can no doubt build fantastic applications. But I didn't feel it was 'better' in any way than anything else. With Python, Go, Rust, Elixir, TypeScript etc. I can all point to a thing they do and say "i…
Re: PHP is worth learning and using
#186Earlier quoted context omitted.
I like PHP and still use it today. But never in my life heard PHP is cool. Am I missing something?
They're making a rhetoric against JS style of development... Though I question what they mean by fake compilers...
Doesn't all that make you long for the days of ./configure --prefix=/somewhere/sane && sudo install -d -o yourusername /somewhere/sane && make install? Just add empscripten to the tool chain and you can do web things with it, sort of...
Re: PHP is worth learning and using
#187Earlier quoted context omitted.
If you're happy with Elixir, just use Elixir. But companies might want to use PHP, because it has a rich ecosystem, which handles corner cases. Chances are, if you want to send out bulk email, or connect to a payment provider, there's going to be a library in PHP that allows you to do that, often with long term support from an agency. A corner-case I recently had was needing to decode an email. There's a function for…
> If you're happy with Elixir, just use Elixir. It's not that I never tried anything else. I got through 8 languages and made what I feel is an informed choice. > Much of this can also be said of the Java ecosystem. And yet, so many programmers and companies moved on from both Java and PHP to other tech and are managing very well. The company I work for has mere 6 backenders and we serve millions of visitors regularl…
> So tell me again, why should I use PHP? How will it truly help me? What does it do better than everyone else?
I gave some reasons, citing problem domains for which there are stable, supported solutions in PHP. e.g. payment gateways, email handling, and citing the availability of programmers who can support medium bespoke or tailored systems. This isn't an "appeal to statistics" it's a strength about the ecosystem.
Similar to Python having many solutions and libraries built around data science.
> I'm not going to try and convince anyone to stop using PHP or Java.
I thought you were asking a question.
Re: PHP is worth learning and using
#188Earlier quoted context omitted.
Why would you pick any other language instead of PHP for web dev?
Is there now a reliable non-hacky way to do threads or async, to run queries to multiple dbs or backend systems simultaneously in PHP?
Re: PHP is worth learning and using
#189Earlier quoted context omitted.
Why would you pick any other language instead of PHP for web dev?
Is there now a reliable non-hacky way to do threads or async, to run queries to multiple dbs or backend systems simultaneously in PHP?
Re: PHP is worth learning and using
#190Earlier quoted context omitted.
I like PHP and still use it today. But never in my life heard PHP is cool. Am I missing something?
If people call something "cool" - that's actually a red flag for me.