JavaScript : The Awesome Script


Either you love it or hate it, but in the age of Microservice and REST API, you can not ignore JavaScript.
JavaScript was once upon a time used only in client side(browser), but node js (execution engine/run time/web server) have made possible to run javascript on server side. JavaScript is everywhere – on Desktop/Server/Mobile.You can create mobile web app with javascript and html5, which has lot of advantages like save licensing cost $99 yearly to pay Apple for making IOS apps and you don’t have to purchase MAC laptop to make your IOS app(Apple’s app can only be made in MAC).

JavaScript has stormed the web technology and nowadays small software ventures to fortune 500, all are using node js for web apps. Recently wordpress.com has rewritten its dashboard in javascript, paypal also chose to rewrite some of its components in java script. Be it google/twitter/facebook, javascript is important for everyone. It is used in applications like single page applications, Geolocation APIs, net advertisements etc.
However JavaScript is quirky/dynamic/scripting/ functional oriented language, and it has its own idiosyncrasies. It is not scalable, it is good for some 3000 line of code but for a bigger app, it becomes difficult to manage ,read and debug. Also not everyone is very much familiar to JavaScript.

You might sometimes think that, I do not know much of a JavaScript then “How to be JavaScript Developer without much knowledge of JavaScript?”

To ease down our work, some smart developers/companies have made compiler/transpiler which convert your other language code into javascript code.(Best of both worlds)

C++: If you know C++, then it is possible to get it converted into JavaScript. Cheerp is a free compiler for open source commercial projects as well as for closed source non commercial projects.It is the C++ compiler for the web.You just write a web application or port your existing one, all in C++. Cheerp will generate its JavaScript code that can run on any browser.

Java: Java is a darling of open source, backed by Oracle/IBM/Google/Red hat. Maximum number of developers in the world are Java developers(around 10 millions). Maximum number of projects in github and apache are based on Java.

  1. GWT is a development toolkit for building and optimizing complex browser-based application.
    Its goal is to enable productive development of high-performance web applications without the developer having to be an expert in browser quirks, XMLHttpRequest, and JavaScript. It’s open source, completely free, and used by thousands of developers around the world.
  2. JSweet: A transpiler from Java to TypeScript/JavaScript It contains 1000+ well-typed JavaScript libraries available from Java.
  3. Kotlin :-Kotlin is a statically-typed programming language that runs on the Java Virtual Machine and also can be compiled to JavaScript source code. Unlike most programming languages, Kotlin language is not made by Academia or Research Lab but it is made by a professional company jetbrains.

Scala: Mix of object oriented and functional approach. It is a static language, but can be use as a dynamic language. Many big enterprises like LinkedIn, Twitter are written in Scala. Again, you write code in scala and scala-js comes to rescue and code gets compiled/transpiled into javascript.

C#: Beautiful and most productive language. Now a days, it is much like scala language, specially after version 4.0. You can write your code in C# and convert into javascript using bridge.net

Typescript: Brain Child of Anders Hejlsberg, who made Turbo, Pascal, Delphi, C# language. TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open Source.

The blog is contributed by Amit Joshi, Trainer cum Developer(Indore). If you also wish to showcase your blog here,please see GBlog for guest blog writing on GeeksforGeeks.

This article is attributed to GeeksforGeeks.org

You Might Also Like

leave a comment



load comments

Subscribe to Our Newsletter