DEV Community

Discussion on: I'm a fullstack web developer in ecommerce, Ask Me Anything!

Collapse
 
anurbol profile image
Nurbol Alpysbayev • Edited

Thank you, Kai Neuwerth! Or Danke schon ;) I suggest you to move to full-js stack away from PHP. I used PHP for 12 years though, but it is dying comparing to js techs. IMHO

Thread Thread
 
crease29 profile image
Kai Neuwerth

Kein Problem! ;)

[...] but PHP is dying comparing to js techs.

I've heard that quite often and the discussions were interesting. Could you please share why you think so?

Thread Thread
 
anurbol profile image
Nurbol Alpysbayev • Edited

Of course! In fact I have several reasons.

  1. Types.
    If you are going to make a really complex app or library, where you risk to go out of your mental/brain/memory capacity because you have to keep so many things in your head, then you will come to an opinion that you should use strong type system. I liked PHP's type system, classes and stuff, but it is very, very far from completeness. JS has Typescript, which is just a superset of JS. Typescript has almost complete (in practical terms) type system and developing (and what much more important, maintaining) very big things is mere fun (not a pain like in PHP).

  2. Slow development. github.com/phpDocumentor/phpDocume... look at this issue. It was created in 2012. This is simple to solve issue and is frequently requested, yet no any progress is done. Or PHP core versions. PHP 7 was like christmas, it improved type system. But at the same time, PHP core team voted to cut many type-related and other useful things.
    I think I know why it is this way. I believe PHP today has no remarkable leaders, who pushes the language and creates modern stuff. And the next reason is kinda linked to this.

  3. What languages do industry giants use, support and push?
    Microsoft: typescript (superset of JS)
    Google: typescript (in angular), dart (fancy JS)
    Facebook: flow (superset of JS), JS (in ReactJS)
    You may add to the list, and you will probably see with your own eyes that no one really supports/pushes PHP, they just trying to somehow modernize their legacy PHP code (e.g. HHVM of Facebook)

I refused to see the truth for many years and continued using PHP but finally realised the truth: it is really dying.

Thread Thread
 
crease29 profile image
Kai Neuwerth

Thanks for sharing and taking the time to write this comment!
I think it's not necessary to get in on it because this would tend to become an endless discussion :D But I get your points and there are obviously valid arguments.

Let's just see where it goes to and where we go to. It's never bad to learn some other languages, teach yourself new technologies and maybe find your next programming language :)

Cheers, Nurbol!

Thread Thread
 
anurbol profile image
Nurbol Alpysbayev • Edited

"I think it's not necessary to get in on it because this would tend to become an endless discussion" - that's a wise decision :)

BTW, after writing the previous comment I thought a bit, that there can be far more developed ecosystem for Ecommerce in PHP than in JS/TS. Because, well Ecommerce is pretty developed/old industry.

Good luck!