+ 1
What language is better for server side? Jsp vs php vs nide.js
as a beginner, which one should I learn. I am learning JavaScript and want to learn some server side coding after that.
3 Réponses
+ 3
You know, Node.js is really different from PHP, effectively they are all server-side but not for the same things.
Node.js was made to do online application that react in real time with the server. For example, a chat or an online game like agar.io. You can do a chat in PHP, but you need to reload the page each time you want to see new messages.
Other difference which is fundamental: With Node.js, the server can send informations when you need to, when you want. In PHP, it is only when the user go on the page the server can send information, so, it is only at the loading of the page. But they are necessary both. I'm not sure you can oppose two languages that aren't used for the same things but I hope I could help you.
+ 1
first of all JSP is too old. Even chrome 40+ version does not support it. Now come with PHP and nodejs. Nodejs is not a language, but a server side implementation of JavaScript. @Volts is right. Although I support nodejs. Nodejs may be future of web programing. Because it is fastest server side scripting language. You can run both server as well as client side with JavaScript. Where as PHP only support server side. To use server client interaction it uses ajax. But nodejs is new and PHP have 20 years of experience. There are a lot of user from PHP side. But it is just a beginning
+ 1
jsp isn't a fully language. it's just a template engine. java web isn't that bad. try Spring family in java(spring mvc, spring-boot, etc). spring is an enterprise web framework (cmiiw)
node.js is different thing. even though people know it it's for web, actually node.js is a simplified socket programming. socket programming is a basic for creating network service, that's it can be used for many things(web, chat server, etc)#cmiiw
fyi, you can create a service that can response like node.js do too in PHP too :)
just choose what you like.
i suggest you to learn java
you can do a lot of thing with it