r/java • • Jan 01 '20

Java on the Desktop

https://www.youtube.com/watch?v=M1NszZ_K2yk&t=0s
110 Upvotes

40 comments sorted by

View all comments

14

u/nonzero_ Jan 01 '20

The case about hype-driven development is definitely true. Let the requirements decide.. an SPA is not always necessary.

0

u/[deleted] Jan 01 '20

I would argue the maintainability aspect of SPAs beats static pages any day. Now that I've started writing SPAs, I'm not ever going back.

4

u/nonzero_ Jan 02 '20

I don't really get this point. Just one example: to make changes in an SPA, be it model or an interface, you always have to adapt two places (SPA + backend), which at least for me always feels tedious and error-prone.

1

u/[deleted] Jan 02 '20

That's true of static pages as well, though. You have to adapt the client-side JavaScript to properly be able to handle the modified XML coming from the server.

1

u/pjmlp Jan 03 '20

Most applications are fine with very little JavaScript, so there isn't much to adapt.

What matters is having designers on the team that actually do wonders with CSS.

1

u/[deleted] Jan 03 '20

I disagree. The whole thing is a scalability nightmare.

Got an HTML/CSS banner you need to change on 100 different pages? Have fun!

Got a React banner you need to change on 1000 pages? Just edit the component once.

1

u/pjmlp Jan 03 '20

That is what caches are for.

1

u/[deleted] Jan 03 '20

Catching static HTML/CSS? You have piqued my interest. Explain.

What you’re suggesting sounds like an iframe.

1

u/pjmlp Jan 03 '20

I am not stating anything extraordinary, just plain old caching of rendered pages, with minimal use of JavaScript for the few screen areas that really require some kind of dynamic behavior.

1

u/[deleted] Jan 03 '20

How does this correct needing to update 100 uses of a static HTML and CSS banner?

The caching won’t save you in that instance.

→ More replies (0)