Link to home
Start Free TrialLog in
Avatar of duncanb7
duncanb7

asked on

Node.js

Dear Experts,

Recenty, I found one name of Node.js and I review and google it
and found some video and article about Node.js such as


http://dojotoolkit.org/documentation/tutorials/1.8/node/ 
http://blog.modulus.io/absolute-beginners-guide-to-nodejs
stackoverflow.com/questions/2353818/how-do-i-get-started-with-node-js
http://www.youtube.com/watch?v=jo_B4LTHi3I

And just conclude something from my understanding  that is

1-Node.js is server-side javascript platform
2-Create Http request on server--side by client  without apache on server  , Is it Right?

That is what I know, but all related article or video doesn't mention
what is advantage of using Node.js

So I guess that is
Normally on  browser webpage those Javascript code is at client-side so
user can run the code on its computer browser and can be viewed those code by
browser view source option.
And If we are using Node.js , we can put those javascript code into server side
and browser user can run it but from server and users can't veiw ths code.
I think that is good thing if so since we can write some javascript code saved
into server and also let user run it at server side so that

Browser user  could NOT copy and could not view  the code that is good for software security that has similar feature as php coding on server-side
Is it right what I wrote above ?

If not, I don't see anything from Node.js to improve my application and website security

If you know the Node.js behind, please let me know what is advantage and application
we can feel using Node.js, for similar example, what is advantage of using
facebook that is you can share or broadcast your information with others.

And I think Node.js should focus on telling people what advantage of using it first
before just all the time mention the code syntax  


Please advise

Duncan
SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of duncanb7
duncanb7

ASKER

Browser User could not view the Node.js javascript code on server, Is it Right ?

And so what is advantage of using Node.js ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
But Javascript at server-side will be running slower than Javascript at
client side, Right ?

And online Game Application might not be good in speed from
using javascript/Node.js at server side
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your reply, that is a good start for Node.js study
And online Game Application might not be good in speed from
using javascript/Node.js at server side than javascript at client-side

You think So ?
where are you running the game? in the user browser so it don't apply...

if you've multiple users playing on the same board in a peer to peer game, nodejs should be good
if you've lot and complex calculations or intense memory usage, it's not good
online game application should run on user browser, Right ?


where are you running the game? in the user browser so it don't apply...

if you've multiple users playing on the same board in a peer to peer game, nodejs should be good
if you've lot and complex calculations or intense memory usage, it's not good

Could you explain it more.
online game application should run on user browser, Right ?

yes, that's why I say your question don't apply to nodejs

Could you explain it more.

What consuming lot of time and ressources is client-server request
using nodejs you should reduce the number of client-server request especially in a peer to peer game because it's easy to play with JSON for example

nodejs is not as fast as java or php for calculation and memory management is less powerful
To run node.js, you have to have your own server because you have to install it as a program.  And it requires 'root' access to read files and access the network.  

On shared hosting, all of that is set up for you and you don't need 'root' access and usually can't even get shell or command line access much less install a program.

When first installed, node.js does not do anything at all.  You have to add functions to it to make it do things.  There are libraries and a package manager available to help you.

http://nodejs.org/