DEV Community

Discussion on: PHP or Node.js: The right technology for your project

Collapse
 
kalashin1 profile image
Kinanee Samson

PHP is a great language for building fast apps but the thing with PHP is security issues, using PHP directly on your applications opens the door for someone to hack your website and worse there's no built in support for asynchronous programming.

Node.js on the other hand enables you to build out of the box applications, you can throw typescript into the mix and get the static typing for your code which PHP lacks. Nodejs allows you to use driven code which is lacking in php too..

I can go on and on about why you should be learning or using node.js however most of my work is with php?? There are a lot of jobs out there that requires php as a skill and i think that's something to consider.

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

I would like to see a detailed explanation about PHP security issues (that are implicitly from the language, not an implementation issue/devs fault) in comparison with other languages. If you do this deep insight you'll find out that everything has a "hack-able degree" and most of time are implementation issues more than language's fault (which all languages face sometimes and thus they add patch versions for it).