Hacker News new | ask | show | jobs
by ruszki 952 days ago
There are website view frameworks for Java, so at the end, many times, it’s not that different. Hotswapping Thymeleaf templates for example works quite well, but the only option is refreshing, while it’s not an inherent restriction.

I had an example for Redux, because one of my pain is that there is no larger view framework for Java, which can’t access JNDI. In other words, nothing stops anybody to create something like Redux, just the view layer shouldn’t be able to access anything else except the model. Even now, it is an antipattern in my opinion to reach anything from the view which has a state and it’s not in the model. Jakarta MVC, Spring MVC, and Struts are close to this, JSF’s model is the JNDI itself, so it’s even easier to write way worse spaghetti code.