News for hackers. Stuff that matters.
Re:The balance has shifted away from SPAs by TedDoesntTalk on Saturday May 21, 2022 @01:41PM (#31460042)
I’m exaggerating to make a point :)
Re:The balance has shifted away from SPAs by bzxcvbn on Saturday May 21, 2022 @02:09PM (#31460318)
Your point is literally the size of the framework. Getting it wrong by more than two orders of magnitude is not exaggeration, it's a false argument.
Re:The balance has shifted away from SPAs by mmcnl on Saturday May 21, 2022 @03:53PM (#31461191)
What is the point? Optimizing for lines of code is a wasteful target. I thought we all knew that by now? Great that you can demonstrate that you can do something without React where others are using React, but that's not the point at all.

If you do more than a few asynchronous calls you will quickly find yourself developing your own DOM abstraction. That's a waste of time because React and Vue already exist, and have existed for years, and are battle tested.

SPA frameworks also give you the ability to write your applications in a declarative way, which is _far_ easier and way less error prone, thus easier to test, than imperative DOM modifications.