DEV Community

Cover image for Nodejs or PHP for the backend
Ikenna Ene
Ikenna Ene

Posted on

Nodejs or PHP for the backend

For a self-thought developer like myself who basically dabbled into backend development, php was probably a more welcoming language. A great community and an easy to digest syntax. Iā€™m pretty sure when you wrote your first program that worked on the browser you felt pretty badass.

Going on as you advance, from an absolute beginner to a beginner (lol), you probably start to get erky with the amount of extra software to run a server. Database management and server maintenance which comes with apache pretty much helps a lot in reducing the difficulty with setting up and maintaining a database.

So if you are a frontend developer looking to learn backend technologies, php might be a great start, but if you are conversant with JavaScript, to reduce the extra time spent learning new syntax, it might be better to stick with Nodejs.
Nodejs is a JavaScript framework that gives you more control in managing the backend of your web based application.
I wish you the very best in your learning activity!

Top comments (2)

Collapse
 
butalin profile image
Anass Boutaline • Edited

Both are awesome to handle backend logic, and also scalable, NodeJS makes it easy if you want to learn only one language (js) to handle backend and frontend, php is greate and have an easy learning path, but the most important is to write cleaner and easy to maintain code either in nodejs or php.
PS: NodeJs is not a framwork, it's a runtime environment for JavaScript

Collapse
 
ikennaene profile image
Ikenna Ene

Exactly writing clean and easy to maintain code. Thanks a lot for the review.