Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why would I want to use server-side JavaScript?

Tags:

javascript

I'm confused, I regularly read talk of server-side JS, why would I want to use that? It seems like it would execute way slower than pretty much any other language, it also lacks many conventions that more sophisticated languages have.

Is it possible to hand entire objects from the client to the server, manipulate them and return them back?

Just struggling to understand the concepts of it.

like image 280
JP Silvashy Avatar asked Dec 15 '09 19:12

JP Silvashy


People also ask

Why do we use JavaScript for the server-side?

Running JavaScript on the server allows your developers to work on both frontend and backend. They will know the entire project much better and altogether avoid the communication overhead between separate teams. They can implement every feature from start to finish by a single developer.

Is JavaScript good on server-side?

While most JavaScript applications run on the client side, there are some server-side applications that it is useful for, such as creating web servers. With its many capabilities, it is no wonder that JavaScript is so popular.

Why do we need server-side?

Server-side programming is very useful because it allows us to efficiently deliver information tailored for individual users and thereby create a much better user experience.

What are the advantages of server side scripting?

The main advantage of server side scripting is that data processing is performed completely on the server side instead of client side, and raw data is never transferred across the internet. Server side scripting helps to develop an interactive website that communicates with the database.


1 Answers

  • I think you cant say anything about the speed of JavaScript without knowing where it is running. I think a V8 could beat a scripting languages like ruby or python.
  • In my opinion JavaScript is much more clearer language then for example PHP or Perl. But this is just my personal opinion.

So why not?

Interesting links: v8cgi, node.js, wxJavaScript and last but not least CouchDB (a JavaScript powered database server)

like image 61
TheHippo Avatar answered Sep 22 '22 20:09

TheHippo