why I like scala.js
So why do I like scala.js? You’ll see that my argument could probably be made for other transpilation-capable languages as well.
In no particular order:
- I already know scala so this allows me to re-use my skills.
- I was tired of JVM issue and uncertainties about its future. Although Oracle now seems to be investing in the JVM ecosystem, I am wary of historical trends. Also, the JVM is not critical in some types of program architectures. The other aspect is that scala has remnants of the JVM built into it. Life is tough, but I found that JS handles some things differently that I liked better, such as not forcing errors into a specific type (JVM only allows errors to be Throwables).
- scala.js works well.
We all have opinions about javacript and JSON–that’s Ok.
I do not need everything perfect and programming will never be perfect. The incremental benefits of using scala.js are good enough for me to improve my productivity and ability to deliver better client solutions faster.