News for hackers. Stuff that matters.
Re:My Evaluation of SvelteKit for Full-Stack Web App Develop... by fruit2020 on Wednesday January 05, 2022 @04:22AM (#29806880)
Why do people prefer full stack for these sort of frameworks. Doesn’t it create more lock in? What’s the problem with frontend + backend api, the api can even be javascript if people only know one language.
Re:My Evaluation of SvelteKit for Full-Stack Web App Develop... by capableweb on Wednesday January 05, 2022 @04:41AM (#29807013)
Same reasons some people like their frontend or backend frameworks to have everything in one place, to have everything in one place.

I prefer to compose libraries that carry exactly the functionality I need, and pipe them together myself. But I'd be a fool if I didn't realize that most people start projects today via some sort of framework that promises (and probably does) a "battery-included" sort of solution, where most of the pieces you'll use have already been put together for you, and you just need to write models, controllers and views (but your framework might call them something else).

Re:My Evaluation of SvelteKit for Full-Stack Web App Develop... by pier25 on Wednesday January 05, 2022 @12:25PM (#29811927)
Because SSR has a couple of advantages depending on the use case.

The most obvious is SEO and being able to send HTML without any JavaScript.

Doing SSR is also simpler than a well made SPA, generally speaking. Your api can be reduced to post requests, or removed entirely. The routing and navigation is much simpler. Etc.

Re:My Evaluation of SvelteKit for Full-Stack Web App Develop... by winwiz on Thursday January 06, 2022 @03:14AM (#29820758)
SEO can be achieved with SPA and without SSR. I wrote an article on this subject: https://hackernoon.com/single-page-application-dispelling-se...
Re:My Evaluation of SvelteKit for Full-Stack Web App Develop... by pier25 on Thursday January 06, 2022 @11:48AM (#29825943)
Technically true but in practice many SPAs will suffer form lower lighthouse scores which will affect page rank. Of course, this is not the case for SPAs that were optimized from the start, but that is rarely the case in the real world.
Re:My Evaluation of SvelteKit for Full-Stack Web App Develop... by newlisp on Wednesday January 05, 2022 @11:13AM (#29810804)
SSR. It turns out most devs can write reliable SPAs so you need some sort of hybrid.