+ 1

Which one would you prefer in modern web development ? Learning PHP or node.js ?

I think both of them have merits as well as demerits. Can anybody explain about those ?

4th May 2018, 4:18 PM
Rider
Rider - avatar
2 Respuestas
+ 3
4th May 2018, 4:52 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
Both have there pros and cons. PHP Pros: • Easy to deploy; Just install PHP, do some configuring (you should definitely configure PHP but it's usually not necessary) and drop your PHP files in the webroot. • Used everywhere. •Easy to learn. Cons: • Weak language; Because PHP grew organically it is a very odd language and has many querks. • Because of how easy it is to learn you'll find some really bad code out there. Node.js Pros: • It's JavaScript with some goodies so if you know JavaScript it'll be a breeze to learn. • It's very fast. • Asynchronous meaning it can handle concurrent requests easily. • Can interact with the user directly unlike PHP. • NPM. Cons: • Not many mature frameworks. • Not as widely used as PHP. • Only runs on one CPU so doesn't scale as well.
4th May 2018, 8:49 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar