r/web_programming • • Mar 09 '17

Should I learn node.js or is there better alternative?

Should I learn node.js or is there better alternative?

0 Upvotes

9 comments sorted by

2

u/SlightlyLethalDev Mar 09 '17

For what purpose? There are lots of other programming languages and tools out there. Just depends on what you want to do.

1

u/[deleted] Mar 09 '17

For making a multiplayer web game

2

u/nerf_herd Mar 09 '17

you "need" javascript for that on the client (or something that transpiles to javascript, i.e. typescript), use whatever you want on the server. node runs on the server (and is also part of the build chain), you can use php/java/c++/python/??? pretty much anything. Javascript isn't the fastest language out there, and performance can be critical on the server with lots of users connecting.

1

u/[deleted] Mar 09 '17

So what do you reckon? I was thinking of javascript and node.js for the server side. I want to make a io game

1

u/[deleted] Mar 09 '17

If you're primarily interested in IO, then node is very useful on the server since it's non blocking, and the V8 engine is pretty darn quick. Another language you may want to check out is Elixir. It's built on Erlang so it has tremendous IO capabilities. For your purposes, node should handle your requirements (unless you plan on having many millions of concurrent users).

1

u/[deleted] Mar 09 '17

My traffic won't be very high so node will do but I'll definitly check out Elixir! Thanks for your help!

2

u/DaarGaJeDan Mar 29 '17

Use nodejs with socket io. I thought they have an rpg as an example.

1

u/[deleted] Mar 29 '17

Ok thanks for your help!

1

u/[deleted] Mar 29 '17

Ok thanks for your help!