Monthly Archives: March 2014

What’s the future of Javascript?

study JS if u haven't

Answer by Mattias Petter Johansson:

Replaced in what area? You'd have to specify, because JavaScript is nowadays used goddamn everywhere. In addition to being the only cross-browser scripting language, it's used as a scripting language in Unity3D, is very popular as a backend language (node.js), and soon also as a language to control hardware: https://tessel.io/ or http://www.espruino.com/. We have three huge actors (Mozilla, Google and Apple) competing to build the fastest JavaScript interpreter.

With ES6, JavaScript is getting a ton of new features targeted towards making life easier for people building transpilers, i.e. languages that compile down to JavaScript, like CoffeeScript and C++. With asm.js and WebGL, it's actually now possible to run real games that run in the browser without plugins – Brendan Eich has done some very impressive demos with Unreal Tournament running in the browser without plugins. It's slowly but surely becoming the Assembler of the web.

JavaScript is even bringing functional programming to the mainstream. JavaScript programmers are using monads on a daily basis without without knowing it. The little functional reactive programming library Bacon.js alone has more stars on Github than the Haskell compiler has. This is tremendously important, because with CPUs now nearing the theoretical speed limit per core, multi-core is the way forward, which will drive the industry towards functional programming which eases the complexity of concurrent programming quite a bit.

No matter your opinion of JavaScript, it would be hazardous to your career as a  programmer not to know it. It's likely that JavaScript will not only maintain, but extend it's hold of the software industry during the coming years.

Oh, and follow me if you're interested in the future of JavaScript, I tend to write a lot about it.

View Answer on Quora