Are there any good tools to generate JavaScript? I remember in .NET, there was Script# - don't know its status today.
Anyone have experience with any tools?
Are there any good tools to generate JavaScript? I remember in .NET, there was Script# - don't know its status today.
Anyone have experience with any tools?
I use my keyboard, a text editor and my brain to generate JavaScript.
:P
As others have said, GWT is a very good option. To summarize some good points:
So I humbly disagree with dominic that the results are ugly since it is up to the coder to 'prettify' the basic functionality with their own css rules and other decorations. It would be the same mistake to call HTML 'ugly' - if you don't try hard, it isn't pretty, but the power and flexibility is in the hands of the coder.
Oh, and it's open source, too.
Latest version of Script# was posted less than a month ago. Nikhil continues to actively work on that project and it's a very good tool for generating JavaScript code from C#. It is actively used in a couple of different internal Microsoft projects.
Some of the benefits of Script# are:
Google Web Toolkit is one option. Write Java code, debug it with a standard Java debugger, then press the "Compile" button and turn it into highly-optimized JavaScript. It generates completely separate JavaScript for each major browser family (IE, Firefox, Safari, etc.).
Very mature, very powerful, and easy to embed into an existing site. One downside is that the UIs it creates are ugly nested tables.
Kotlin can generate JavaScript out of Kotlin code. For Kotlin see http://kotlin.jetbrains.org/ and also http://devnet.jetbrains.com/thread/447468?tstart=0
Try Haxe.
It can target JavaScript, ActionScript and Neko bytecode. The language is close to Java.