ServerJS/FAQ

From MozillaWiki
< ServerJS
Revision as of 00:37, 5 February 2009 by Kdangoor (talk | contribs) (New page: === Why use JavaScript on the server? === Using the same language on both the client and server sides allows for code sharing. As the language of the browser, the JavaScript language is in...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Why use JavaScript on the server?

Using the same language on both the client and server sides allows for code sharing. As the language of the browser, the JavaScript language is in a unique position to enable this sharing. Using JavaScript on the server-side also leverages knowledge of JavaScript.

Why not Perl/PHP/Python/Ruby?

These languages are not in the browser and so cannot share code with the browser (without undue burden on either the developer or browser.)

If sharing code is the objective, then why not compile language X to JavaScript to send to the browser?

Debugging compiled code is not an enjoyable experience.