News for hackers. Stuff that matters.
Re:Ask HN: GWT vs React? by bahador on Thursday March 19, 2015 @07:40PM (#9235349)
Unless I'm mistaken, they're not really comparable. GWT is an entire framework (Java front and back), as opposed to React being a component rendering library (the V in MVC). It would be more accurate to compare GWT to Node, or React to Polymer.
Re:Ask HN: GWT vs React? by mathieulorber on Friday March 20, 2015 @04:56AM (#9236701)
The backend part of GWT is really tiny : a RPC library which stays optional ; lots of people do not use at all nowadays.

I haven't took the time to look how react exactly work yet, but it seems the notion of virtual dom is really comparable to GWT initial component model. Even if the initial motivation is not the same, in both models there's a separation between the DOM and the components tree you manipulate.

Re:Ask HN: GWT vs React? by noso on Friday March 20, 2015 @04:04AM (#9236617)
Thanks for the reply, I guess what I am asking would you create a web app using gwt or react with something like node.js.
Re:Ask HN: GWT vs React? by mathieulorber on Saturday March 21, 2015 @12:23PM (#9243166)
It's technically completely possible.

You do not /have/ to use the GWT serialization lib which comes with RPC. You can use JSON with GWT. It's actually very trendy and some new librairies simplify this.

But the combination GWT + node is surprising...

One of main advantages of GWT is you use the same language client-side and server-side. It's not at all "a swing portage" as it more or less used to be at the very beginning, but still, GWT comes from the Java world. If you want a strong-typed langage for your client code (big client application, huge dev team, or whatever), GWT is really the most mature solution today.

So :

* if you are ok with JS, and about making your backend in JS (I can't...), just use JS everywhere...

* if you want GWT, but a "reactive backend" like node, there are lots of good reactive backend-frameworks in the Java ecosystem