| I think the article favors the authors bias, I helped architect and write possible the largest JavaScript code base in production, it was for an IBM project and was well over what the article cites as a large Java app. After writing large Javascript apps for several years, I would say in my experience the difference is negligible on a line of code basis. But what can be accomplished with JavaScript is not. The reason that developers are abandoning, JSP, ASP, PHP for JavaScript apps is because the benefits far outweigh the drawbacks and those benefits would still exist even if JavaScript was double the cost per line (which is the worst way to measure the cost of development). JavaScript allows us to reduce the technology stack from a bunch of proprietary server languages that are not portable among server, to the browser which is very portable. When a JavaScript front end is designed to communicate with a REST facade, it makes the front end portable among any of the back end choices, further it provides a way to allow a front end to utilize completely disparaenent back ends (think Facebook and twitter integration). JavaScript forces you to look at your business as a set of services forcing you to develop a service based platform. The advantages of this are becoming more and more apparent. Finally, in forcing the service based architecture it becomes easy for companies to rapidly produce front ends for platforms like the iPhone or IVR. Delivering to new platforms becomes a rapid development exercise because JavaScript web apps inherently force you to decouple the UI from the business systems. There are a lot of advantages to developing applications with JavaScript few of them have to do with the cost of line by line code and more to do with total cost of ownership and technical debt. When those are factored in the value of JavaScript apps becomes apparent. |