Why Don’t You Use Java for Programming the Client-Side Web Apps on Web Browser?
- We use Java as the language
- We have the best ecosystem like libraries, frameworks, build system and IDEs.
- We know best design patterns to make our apps maintainable like Dependency Injection, Mock Testing and many other just take a look at: http://bit.ly/DesignPatternsJava
- … and if you use Java on the server-side with Spring Framework or JavaEE you have one language through the whole stack. So, you could reuse Validation APIs, Business Rules, Business Model, etc. from server to client.
In the mean time I have written following articles in this domain:
- Web Browser Programming in Java
- Using IndexedDB in Web Browser — All in Java with Mrs. Gwitany and Dr. Jackl
- Impressions on Modern Java Web Browser Development with GWT
… and also I created a collection of GWT / J2CL information as Padlet: https://bit.ly/GWTIntroPadlet
Anders Hejlsberg creator of TypeScript said in an interview:
The interview was very interesting, definitely a must read: http://bit.ly/AndersHTypeScriptInterview
Also my question goes to the use of TypeScript. You also use a transpiler in TypeScript so actually it is just similar to Java with GWT / J2CL. Why would you use TypeScript as a Java developer?
But for Java developers? I don’t think that TypeScript has advantages over Java. Therefore my conclusion is:
- If you are coming from Java use Java on Web browser with GWT / J2CL transpiler.
One last point, maybe a lot of Java developers only work on server-side (backend) and not on client-side (Web browser), so there is no need to write something on Web browser?
Discussion at HackerNews: https://bit.ly/HackerNewsTypeScriptJavaGWT
Thanks a lot for your input!