News for hackers. Stuff that matters.
Re:Weird Debugging Tricks the Browser Doesn't Want You to Know by OOPMan on Monday November 13, 2023 @12:23AM (#38247255)
Sure, those are pretty interesting points but I feel like there is a bit of difference between the environment of a browser and that of a runtime like the JVM which tends to explain why certain debugging tools exist in one environment and not the other.

For the same reason it doesn't seem that useful to bring in very environment-specific stuff like Redux.

Re:Weird Debugging Tricks the Browser Doesn't Want You to Know by ruszki on Monday November 13, 2023 @12:54AM (#38247426)
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.