News for hackers. Stuff that matters.
Re:Web Components Eliminate JavaScript Framework Lock-In by jitl on Monday November 27, 2023 @05:10PM (#38439144)
The server is typically not a retained-mode kind of abstraction. Incremental view maintenance in retained-mode MVC systems is the main source of bugs. If you render the view from scratch on every request, it's more similar to React style immediate-mode UI than something like UIKit where you end up handling many UI events and keeping little bits of the UI up-to-date with model changes incrementally.
Re:Web Components Eliminate JavaScript Framework Lock-In by breadwinner on Monday November 27, 2023 @05:58PM (#38439738)
You can render the view from scratch on every user interaction, even in MVC. In fact, you can use React for that purpose. "Lots of people use React as the V in MVC." See that quote on this page: https://github.com/facebook/react/tree/015833e5942ce55cf31ae...

Personally, I have not run into large amounts of bugs of this type, and I have written plenty of MVC code using VanillaJS.

Re:Web Components Eliminate JavaScript Framework Lock-In by stickfigure on Tuesday November 28, 2023 @09:59AM (#38446420)
As I said, "MVC", model, view, controller - popular names. But if you've ever done MVC GUI programming, and MVC web programming, you find that the relationship is merely analogous. And even within both camps, there is such variety that I don't think you can fairly call MVC a single technology. It's a (very) loose pattern.