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?
There is currently a lot of tools to generate JavaScript, like GWT.
But giving you a good answer really depends on what is your originator language and what king of JavaScript functionnality you want to use.
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.
I use my keyboard, a text editor and my brain to generate JavaScript.
:P
I've used D templates (think C++ without the pain and you'll be 50% there) to generate a AJAX based Object proxy.
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.