When I was a beginner in the programming world, I started with php 5 and spent about 1 year and a half coding with it. After this, I spent my last years coding in node js. A few days ago, I decided to look at the news of the PHP 8, as well looking for what changes from the version I coded in the past.

I absolutely loved the way that php evolved in the past years and I ‘m doubt now, because I don’t know if I switch back to php or if I’m stay on node ecosystem. In my area, the demands is equal for both, so, this doesn’t matter too much.
I followed a similar path and came back to PHP as well and now use both. I’m my opinion it’s a seriously underrated language and the support and frameworks for it (like Laravel) can be so much more powerful in many ways than NodeJs for building web apis and server-side. I get the appeal for “JS everywhere” but sometimes it’s better to consider as well that languages like PHP were designed with server side from the get-go and the language and frameworks have been actively developed and tested for many years now. So much of the web runs on php (WordPress for example) and it’s still extensively used at Facebook which was originally written in PHP. It’s absolutely a skill worth having and even more so USING.
I see that your last post was about being in a depression, which is sad to hear. I wish you a fast and complete recovery. I understand that from the emotional standpoint you probably need some attention. But honestly, from the logical standpoint, it’s entirely a personal preference, nobody can decide it for you.
Either way, PHP is a beautiful language with strong background and a multiverse of tools and machinery to every liking, and you are always welcome to the community!
Both have their pros and cons and both are mature enough to be deploying live applications with.
If you’re comfortable with Node and making a good living off it then I would 100% stay with it, there really isn’t any need to move away whilst you’re in a good place. The only thing I would say is definitely to keep your toe in with PHP, or any other language for that matter. It always benefits you individually to know multiple languages and different ways of thinking about the same problem.
You will see a lot of the top packages in PHP usually have something in the readme along the lines of inspired by package X in language Y. You can get a lot of inspiration from other languages even if you don’t completely utilize them in a professional setting.
Having coded substantially in NodeJS this year, I have to say:
If you want way less debug frustration, lower cognitive load from having to deal with async executing stuff out of p
Welcome back!


https://twitter.com/hopeseekr/status/1332895784094855169
God!!! How the HELL is NodeJS so much more popular than PHP?!
I’ll tell you how: NONE OF YOU NODE DEVS ARE GIVING PHP A FAIR SHAKE!
PHP is so much more easier…
https://twitter.com/hopeseekr/status/1334641978743664640
The NodeJS ecosystem seems to be where PHP’s was in the mid-2000s as far as end-developer ease-of-use goes.
Don’t believe me?! I dare you to implement JWT auth using Passport.JS, Express.JS and Sequelize via MySQL!~!
Took me a week to figure it all out!
https://twitter.com/hopeseekr/status/1334534847189184514
After a week making a non-trivial app in NodeJS (Express + Sequelize) + ReactJS, I have to say:
NodeJS is ~5x harder than the equivalent in PHP (Laravel
Eloquent) and Vue.js / Angular.
I do not see what the hype is, really. Bunch of cool kids who don’t know any better.
https://twitter.com/hopeseekr/status/1333161930232565761
express-validator makes me want to tear my frickin eyes out!!
My God! The NodeJS toolchain is so underdeveloped, it’s like the mid-2000s with PHP…
None of these Node devs must have coded in Laravel’s $this->validate() before… or they’d rebel!
https://twitter.com/hopeseekr/status/1335628550972600321
Coming from the PHP world, coding in NodeJS and ReactJS is much more painful than it needs to be…
Especially considering the apparent lack of anything like PSR-4 in the JavaScript world…
All you anti-PHP cool kids don’t know what you’re missing, including Python.
That’s just the rantings of a guy who thinks something is shite because he isn’t familiar with it.
Like a lifelong PC user saying “Macs suck” because they have to learn how to use Command+C instead of Ctrl-C.
Members
Online

source