+ 2

Which language is good for Backend PHP or Nodejs ?

I want to become a full stack web developer. These are the languages i choose : Frontend :HTML,CSS,JS and Backend:MySQL and PHP. I have learned PHP but on researching on web I found that more and more devs are switching to NodeJs and PHP is loosing its Value. Is it a good option if i took PHP as my backend langauge rather than nodejs ? Or should i Learn nodejs as per the trend ?

29th Jun 2020, 2:22 AM
The Lame Coder
The Lame Coder - avatar
3 Answers
+ 6
If you like JavaScript, go for node.js. I was php developer, once I learned and moved to node.js, I never looked back.
29th Jun 2020, 2:36 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 4
This guy explain every reason to stop working (or never begin with) php https://whydoesitsuck.com/why-does-php-suck/ Also, I worked with nodejs and I can tell that it is so much easier to work with a language that you already know instead of learning a new one
29th Jun 2020, 4:27 AM
amit avinoam
amit avinoam - avatar
+ 2
PHP was originally created by Rasmus Lerdorf as a template engine. Over the years it has been transformed into a server-side programming language. There is hardly any other language with that kind of history and that is what makes PHP a confusing language for developers. However, I disagree that PHP is losing its value. According to W3Techs' data, PHP is used by 78.9% of all websites with a known server-side programming language. That is not exactly my definition of a dying language. PHP is one of the best languages for consumer applications because it is easy to deploy and cheap. It is possible to deploy an entire PHP application on a shared hosting server with no SSH access and little storage. It is very easy as well although irl you probably we need a more complex application. Also its popularity is an advantage. WordPress, Drupal, Jetpack, WooCommerce are popular high demand consumer solutions built with PHP. Enterprise apps are also easy in PHP with frameworks like Symfony and Laravel
29th Jun 2020, 8:47 AM
Ore
Ore - avatar