I find myself repeating myself when I write AJAX web applications.
It seems absurd to have to define my models in two distinct languages. Worse, after I’ve done so, I have to write substantial glue code to round-trip changes from browser to server and back again.
Perhaps Google Web Toolkit (GWT) solves this problem for me? I haven’t dug deeply at all, but it seems as though I could simply define everything in Java and then let GWT handle the RPC work for me?