DEV Community

Developer
Developer

Posted on

What is best for Backend . Node Js or PHP

Top comments (4)

Collapse
 
fyodorio profile image
Fyodor • Edited

Both are OK for CRUD apps (listen to your heart). If you need something heavier look into direction of Go, Java, .Net, etc.

Collapse
 
leober_ramos33 profile image
Leober Ramos

Why?

Collapse
 
fyodorio profile image
Fyodor

Performance, scalability, reliability

Collapse
 
leober_ramos33 profile image
Leober Ramos

the best language is the one that suits you, the one that suits the project and your knowledge.

what matters is that you understand the logic of programming and that you can adapt to any language, just by understanding the logic.

There is no such thing as a better language than another, but it is something that we programmers always ask ourselves (especially when we are starting) and there is always debate about it.

What I recommend is to learn both, there are projects that are in some hosting (commonly shared hosting) that only support PHP, so you can only use this language, depending on what you are going to do you can do it in vanilla or in Laravel

There are other projects where they already have a JavaScript environment and you must use Node.js

Everything depends on the project, the ideal is that if you are going to dedicate yourself to web development (which I suppose) is that you learn both, and draw your own conclusion of which language you like more, which environment you like more.

because at the end of the day it is that, always do something with the technologies that you already know and dominate, if you dominate PHP perfectly then offer that project to the client with PHP, so that learning some other technology on the fly just because it is trending.

Read a lot, and learn a lot, and build a lot so that you have an infinite range of possibilities to choose from, and learn a little bit of everything, and then go deeper into what you liked most of all that you learned.