DEV Community

Discussion on: Modern Full-Stack Developer Tech Stack 2021

 
pictor13 profile image
Igor Pellegrini • Edited

is not a good suggestion for 2021 WebDev

You are implying it is bad. There is no other reason to dismiss a language that does its job, that has a consistent ecosystem, that powers a lot of modern apps (yes, with JS frontend side of course).
One uses the tools that are necessary; sectorial mindset won't help the career in the long run.
Sure you mentioned what's "trendy" in 2021 (for reasons, of course), like in the OP's text; but popular and widespread is not an objective indicator (it counts for JS and PHP too).
PHP, for how much flawed or imperfect or still catching up with "modernity", is a consistent part of the market, in 2021 (and no: not just legacy project).
You dismissed it too easily, and it sounds (partially) biased. Hence, the critics in the comments.
Even JS is not the solution to everything and has its drawbacks. I'm not saying is "bad".
You can't even say that JS is "the best option", following your same reasoning.

Depending on mindset, style, educational path, project, requirements, one stack can be better than another.

You need more strict typing validation? You choose PHP (or Java), not Typescript. Need strong productivity? Again PHP (or Python or Ruby). You need flexibility? Probably JS is the right one. Governative project? Then use JS as less as you can and rely on as much other web tech standards as possible. Startup? Embrace all the new shit an JS as you want. Serverless? Again, JS is a better choice.

But you just can't rule out PHP "in 2021". It's just a choice as the others. In web development it's imperative to learn multiple technologies: it's one of the things that actually the "full-stack" in the title implies.
Nowadays there's the choice to have JS for either BE and FE; cool, good for some! (people, projects, requirements, etc.)

However I believe the whole issue is with the post's title; probably should have written "JS full-stack developer", to not be misleading people in this discussion (especially the lazy ones like me that scroll fast and just skim); cause nothing else is considered or mentioned by the author.