JavaScript conquers the server

Node.js, Jaxer, EJScript, RingoJS, and AppengineJS combine the familiarity of JavaScript, low overhead, blazing speed, and unique twists

By Peter Wayner, InfoWorld |  Software, java, JavaScript

The process is similar to building a simple JSP-based site. Perhaps more than many of these other frameworks, RingoJS reflects its Java heritage. There's a fairly complete collection of modules, including ones for profiling and security. Many of these seem similar to their Java counterparts because they're relatively thin layers on top of the Java. The logging, for instance, uses the Simple Logging Facade for Java (SLF4J) to connect with Log4J.

Creating websites with RingoJS was fun but often left me wondering why I shouldn't just code in Java, the common tongue for most of the foundation. If you have enough experience with Java, you'll probably feel the same way. RingoJS isn't meant for people like us. We're probably better off writing code that's closer to the metal.

I think the ideal users will be people who enjoy JavaScript because it's a dynamic language that's a bit more relaxed than Java. RingoJS might be good for a shop where some of the programmers are JavaScript junkies and some are experts in server-side Java. This would allow the two groups to code alongside each other. Those who know JavaScript on the client can now write JavaScript that can leverage all of the power of the Java server stack. The others can write Java.

JavaScript servers: AppengineJS Let's imagine that you admire the stability and flexibility of Google App Engine's Java runtime, and you enjoy the straightforward nomenclature of Google App Engine's Python API, but you have the need to write your code in JavaScript. If you fit in the center of this Venn diagram, then AppengineJS is for you.

Some clever folks have combined the Rhino JavaScript engine written in Java with a thin layer of an API that uses the Python names. It all rests on top of the Google App Engine Java API. The result is similar to what you might write in Java or Python for the Google App Engine, but it uses the JavaScript syntax.

The ideal users will be those who love the Google App Engine model and its support for quick-scaling applications but can't bring themselves to program in either Python or Java. Now you can write directly to the App Engine API with JavaScript.

Originally published on InfoWorld |  Click here to read the original story.
Join us:






Answers - Powered by ITworld

ITworld Answers helps you solve problems and share expertise. Ask a question or take a crack at answering the new questions below.

Ask a Question