Re:Scala.jsFiddle: TodoMVC
by kybernetikos on Thursday March 06, 2014 @06:11AM
(#7353038)
> JavaScript really isn't hard, trying to avoid writing it by writing a more complex language which gives you more JavaScript than you would have had anyway really can't ever be a win surely?
I've had massive business value from writing code in a more type safe language and then transpiling it into a number of other languages, including javascript.
Re:Scala.jsFiddle: TodoMVC
by actsasbuffoon on Thursday March 06, 2014 @07:39AM
(#7353298)
I get your point, but to play Devil's Advocate: Assembly is about as simple as it gets. The venerable 6502 chip only had around 40 instructions. At one point it was the most popular programming language in the world (if you clump all the variants together). Every other programming language you can write just gets compiled down into more Assembly than you would have if you just wrote Assembly by hand, and it will probably be less efficient. Yet despite all of that, there are very clearly some big wins to be had by writing in those other languages.
Yeah this is really a waste of time, and it will never pick up. CoffeeScript is the only language with a shot right now due to popularity.
I'd say TypeScript and Dart are contenders as well.
Right now, yes. I say this as a developer that works primarily in CoffeeScript - I wonder if, when ES6 is finally available to all, interest in CoffeeScript will wane. Certainly half the reason I'm using it is to avoid some of the warts in JS.
JavaScript really isn't hard, trying to avoid writing it by writing a more complex language which gives you more JavaScript than you would have had anyway really can't ever be a win surely?