javascriptcoding-stylerhinoserverside-javascript

Server side Javascript best practices?


We have a CMS built on Java and it has Mozilla Rhino for the server side JS. At the moment the JS code base is small but growing. Before it is too late and code has become a horrible mess I want to introduce some best practices and coding style.

Obviously the name space control is pretty important. But how about other best practices - especially for Java programmers?


Solution

  • Here's some tips from the front lines: