3 ms·
While I think GWT is a pretty good project and has some way to go before it can be categorized as failing, some of your other remarks make me think that you hav
by sanderjd 14y ago
While I think GWT is a pretty good project and has some way to go before it can be categorized as failing, some of your other remarks make me think that you have not given appropriate consideration to the alternatives to its approach.
First and foremost, you can write javascript in such a way that your code does nothing weird and only what you intended. A good place to start is still "JavaScript: The Good Parts"[1]. Then I suggest finding some examples of nicely written javascript code on GitHub or some such site. I personally think underscore.js[2] and backbone.js[3] are rather nice.
If you have really given javascript a fair shot, and still strongly dislike it, there are many other languages that compile into javascript, but match its style more closely that Java does. I have been enjoying working in CoffeScript[4]. There is an excellent interactive book[5] that shows the javascript generated by the constructs in the language, which is also a good resource for discovering idioms to do things that are not obvious in javascript, like creating classes. TypeScript[6] and Dart[7] are both interesting languages with syntax more familiar to Java. There are a lot more languages that compile to javascript that I haven't mentioned[8].
It's possible that GWT and Java are the best fit for you, but don't pigeonhole yourself by thinking that they are the only good options out there.
[1] http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742 http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockfor...
[2] https://github.com/documentcloud/underscore/blob/master/underscore.js https://github.com/documentcloud/underscore/blob/master/unde...
[3] https://github.com/documentcloud/backbone/blob/master/backbone.js https://github.com/documentcloud/backbone/blob/master/backbo...
[4] http://coffeescript.org/ http://coffeescript.org/
[5] http://arcturo.github.com/library/coffeescript/02_syntax.html http://arcturo.github.com/library/coffeescript/02_syntax.htm...
[6] http://www.typescriptlang.org/ http://www.typescriptlang.org/
[7] http://www.dartlang.org/ http://www.dartlang.org/
[8] https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS https://github.com/jashkenas/coffee-script/wiki/List-of-lang...