Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The personal projects I tend towards are interactive and have animations and fancy transitions and application state and they make API calls.

Which makes Astro the wrong tool for the job, and SPA frameworks like Svelte the right tool for the job.

Doing these things server side makes no sense, it'd just make everything harder for me to debug!



I'm not saying SPAs are wrong. There is a very valid set of uses and it sounds like you're well in there, though if your state model is so fragile to won't survive me accidentally refreshing, you need to look at that.

But many enthusiastic young developers start using a framework and decide to do everything with it. Same was true on server dynamic frameworks. Everyone's first project is technologically-inappropriate blog. These sites would be objectively better as SSG sites.

Btw, Astro is surprisingly excellent at using frontend components from multiple frameworks, even in the same project. If your interactivity is in-page, or you have a mixed MPA-SPA domain, it's well worth a look.

Even the DX, I prefer it to Next/Next projects where you're chained to a set of dev dependencies from the start. My last Nuxt upgrade took three weeks to unhook various deep integrations and fix things (Vue 2 to 3 too). Nightmare.


> though if your state model is so fragile to won't survive me accidentally refreshing, you need to look at that.

Highly interactive experiences are complex to manage full refreshes with, is it do-able? Sure. It is something I want to bother with for a project I work on 1hr a day after work? Not really!

> Everyone's first project is technologically-inappropriate blog. These sites would be objectively better as SSG sites.

I am amazed that Wordpress became the behemoth that it is for personal blogs, given that 99.99% of them would work well as statically generated pages.

Honestly the move towards SSG that then embed some discussion component seems like the best combo for most small and medium use cases.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: