3 ms·
"Node.js allows you to write code on the server in the same language you're already writing it on the client." As for that, who cares what's hip, or cool? Nod
by bmelton 16y ago
"Node.js allows you to write code on the server in the same language you're already writing it on the client."
As for that, who cares what's hip, or cool? Node.js definitely isn't a silver bullet, and introduces its own set of problems. But while it has its ups and downs, simplifying your development methodology and shrinking your technology stack is generally a good thing.
Also, it enables people to write code on the server who only knew JavaScript before. I guess. I don't know how valid that is as a use case.
- bni 16y agoFor my current project, a multiplayer game that runs in the browser, its essential to be able to run the same code on the server as in the client. This is how FPS games such as Unreal do it with C++. Basically the game simulation needs to run on the server and be the authorative game state to distribute to the clients that does their own prediction of the game state. To do this with Java or PHP on the server would mean to implement the game simulation twice. Keeping in mind that social network sites, etc resembles multiplayer games more and more (realtime feedback etc), node.js really helps out here.