News for hackers. Stuff that matters.
Re:Riot – A React-like, 2.5K user interface library by api on Thursday January 22, 2015 @12:52PM (#8930524)
I tried GWT years ago. It worked amazingly well, and let me write web apps in a real language. But it was significantly slower to develop a new site in GWT vs. plain vanilla HTML + CSS + JavaScript, and the speed to get up and running eventually seduced me away.

Now I'm considering going back and giving it another try. It takes more time to get up and running with GWT, sure, but the stuff you do write with it is written in... well... a real language with types and good tooling and real design patterns. The result is an application you can maintain and build upon for a long period of time rather than a heap of web cruft that collapses quickly under its own weight.

I know it's not sexy, but I've had the same experience you've had with "sexy." I'm becoming generally disillusioned with weakly typed and even dynamically typed languages -- they're fast to write but hard to maintain over long periods of time.

http://www.gwtproject.org

Re:Riot – A React-like, 2.5K user interface library by spankalee on Thursday January 22, 2015 @01:24PM (#8930716)
You should also look at Dart. It has a very fast iteration cycle and is a much nicer language that Java (in my very biased opinion - I worked on Dart).
Re:Riot – A React-like, 2.5K user interface library by hderms on Thursday January 22, 2015 @02:40PM (#8931244)
I echo your sentiments about disillusionment with weakly typed/dynamically typed languages and I still haven't really reached a situation where I was glad I didn't have a type system backing me.
Re:Riot – A React-like, 2.5K user interface library by nogridbag on Friday January 23, 2015 @09:19AM (#8934906)
I used GWT for a few years on two projects, but I would not use it on any future projects. The first was using GXT, which you should probably avoid for public facing sites.

We ran into some GWT compilation issues mainly due to code size a couple of times with some browsers, like Safari, that left us dead in the water until Google released an update.

The second project used vanilla GWT and we were very happy with how performant it was. But we avoided lots of GWT features which seem over-engineered and complicated. We used JSON overlay types instead of RPC calls (which made our compilation / or dev mode much faster - I forget honestly). We avoided MVP, because I never met anyone who actually fully understood MVP with GWT. Instead, we had a very simple MVC structure that worked great for us (but lacked unit tests..). We avoided most of the CSS features because the complexity/value wasn't favorable for us.

Moved on to a JS project afterwards and it was a breath of fresh air.

Re:Riot – A React-like, 2.5K user interface library by boobsbr on Thursday January 22, 2015 @02:47PM (#8931287)
"real language"...
Re:Riot – A React-like, 2.5K user interface library by api on Thursday January 22, 2015 @02:53PM (#8931326)
Not saying Java is the best language ever, just that it passes a certain minimum bar that JavaScript does not.
Re:Riot – A React-like, 2.5K user interface library by boobsbr on Thursday January 22, 2015 @03:36PM (#8931579)
I'm a Java developer (and it might shock people, but I like it), where I work we're still stuck with good ol' Struts, it works, and a big international corporation uses this system.

But comparing a functional scripting language with a object-oriented statically-typed pre-compiled language, arguing one is better than the other, does not make sense to me.

You can easily revert the situation and say that static typing is a weakness of java, and it's poor fucntional (until before v8) capability is a drawback and a strong point for Javascript.

I'm not into the JS world so I can't say anything about the tooling, but yes, Java's tooling and ecosystem is an extremely strong point.

My complaint is about dismissing Javascript as not a "real language" while it's got A LOT going for it.

EDIT: I also worked with GWT (GXT from ExtJs, actually) in 2011-2012, and it was really nice. I miss it.

Re:Riot – A React-like, 2.5K user interface library by porker on Friday January 23, 2015 @04:45AM (#8934079)
The other advantage with GWT I see is.. as the target changes, your app doesn't have to, only the transpiler.

GWT can output to ExtJS, to <insert next HTML5/JS framework>, to <future platform>. And barring minor changes, your code stays the same.

Now that is worth the investment.

Re:Riot – A React-like, 2.5K user interface library by wtetzner on Thursday January 22, 2015 @03:07PM (#8931413)
If you want a "real" language with types and whatnot, there's js_of_ocaml.