Readit News logoReadit News
davepeck · a year ago
I really like Astro:

1. It's the most flexible yet easily configured static site generator I've used to date

2. It's reliable. The docs are well maintained and, mirabile dictu, the real behavior of the system matches its documented behavior

3. It's stable. Lots of new features are getting added, but (so far) upgrades don't break things

4. It has good tooling for editors like vscode

5. Many of my current projects take the form of "big data pipeline, followed by intermittent job to rebuild a static site and push it live"; astro fits very nicely in this role

Caveat: I use exactly none of Astro's backend features. I understand why they've added them but, for me, it's all about static site generation.

About the only thing I don't like is the weirdness of the boundary between astro components and framework components. I get it, but still. It's something to carefully consider when building each new astro site.

rogue7 · a year ago
> 5. Many of my current projects take the form of "big data pipeline, followed by intermittent job to rebuild a static site and push it live"; astro fits very nicely in this role

You may be interested in Observable Framework [0]

[0] https://observablehq.com/framework/

davepeck · a year ago
Yes! I’ve had my eye on it but haven’t had a chance to use it (yet).
cpursley · a year ago
The docs are soooo good.

Page speed and SEO scores for astro sites are off the charts.

And Bolt.new and Cursor do really well with it.

richardw · a year ago
Front end is a young person’s game because of the endless churn. It’s where I started and I love delivering a tight, next-level UX. But I’ve spent the last decade in enterprise distributed, microservices, integration, data etc with a ton of complexity but far less BS churn. Now I need to decide on a web stack and have been leaning TS, React, Next etc. But there’s no foundation you can rely on. It’s shifting as we speak, with the endless gyrations and new abstractions, and waves of complexity and simplification and breaking changes. I’ve never minded learning but in front end you basically zero your knowledge every few years. This is now an area I’ll happily delegate to an AI.

Of course I’m heavily into LLM’s etc right now so maybe I should stop whining. That makes JS seem like a glacier.

adverbly · a year ago
No foundation? What do you think all these libraries and frameworks are built on???

The true path to having a "deep" front-end toolbox is in learning things that are not libraries. Here is a "long-lasting" frontend list that really just scratches the surface:

- CSS(animations, advanced layouts etc...)

- HTML(canvas, accessibility, svgs...)

- websockets, advanced networking

- advanced browser APIs(indexdb, mouse/touch events, events in general, WebGL...)

- high performance js, perf monitoring

Its really just DOM/state manipulation, and different levels of caching that frameworks provide.

richardw · a year ago
I take your point but keeping an app current enough to maintain the ability to hire, is hardest in this area. Not like SQL or C for example. Knowing that can be useful for decades. You build knowledge that persists - experience is a good thing. I can’t tell you the front end stuff I’ve not used in a long time because the list is very long. Much of that knowledge isn’t useful and the code has long changed. I can get involved but I’m not as interested.

It’s like in a war when the new guy shows up. Don’t get too friendly; he’s probably not going to make it.

o_m · a year ago
I have quit the React/Node/JavaScript ecosystem. I'm going all in on backend. I also feel all the time invested in front end has always wither and vanish. It is hard to accumulate knowledge in the front end field when it is always changing. I'm probably going to lose money on this bet (going from senior front end), but I'm already feeling a lot happier.
lakomen · a year ago
But that's so ugh. Templates and the endless helper functions. No interactivity, all the if else blocks. No just no, not again.
ivanjermakov · a year ago
SolidJS[1] took the best from React and seems to be quite stable, check it out. It is fairly small and doesn't try to be everything at once.

[1]: https://www.solidjs.com/

lakomen · a year ago
Rust, I've been experimenting with it, and (tutorial) code written a year ago doesn't compile anymore. If there's something you shouldn't use, it's Rust, at least for the time being. Maybe in 10 years.
whytevuhuni · a year ago
That should definitely not be the case. Did you compile it with a different edition, or different 3rd party dependency major versions, perhaps?
richardw · a year ago
Thanks for the warning! I’ve been meaning to check it out.
gr4vityWall · a year ago
I can relate to the complexity fatigue.

I think if they were willing to let go of type safety, PHP + jQuery could unironically work just fine for them. I wonder if it's possible to sanely use PHP with TypeScript + Vite with SSG, without making your tooling too complex.

Anyway, congrats to them, sounds like they reduced costs and even kept engineers happy with an interesting technical challenge.

0xblinq · a year ago
Inertia.js
niceice · a year ago
(12 months from now)

We switched from Astro to SkibidiJS

oliwarner · a year ago
Maybe, but that does that devalue the positive progress today?

I understand what you're saying, people framework hop and what's popular does change frequently, but we're not all using Frontpage still, are we? That process of changing to something better (as evidenced by TFA) has value in itself.

0xblinq · a year ago
One thing is framework hopping, which one can decide to do or not do.

The problem here is that even staying within the same framework it feels like you're changing it every 6 months. Look at Next (pages vs app router) or Remix (now react-router).

There's literally zero stability and you need to rewrite everything constantly.

The worst part, as it happens at my job, is when you have people newer to the industry that think that if you're not on the latest and coolest then "everything is shit" and they live in this mindset where everything has to be rewritten constantly or otherwise they cannot be happy at work. Fuck your users, your product and everything else. Latest cool trend is the only thing that matters to them.

alabhyajindal · a year ago
Yes there's value in changing to something better. The frequency of change is the real issue here.
johnchristopher · a year ago
> I understand what you're saying, people framework hop and what's popular does change frequently, but we're not all using Frontpage still, are we?

yeah, we switched to WordPress. I am glad we didn't follow up on our web agency 5 years ago to switch to gasby. Our wordpress is still running fine. I am glad we are not considering switching to Astro, since wordpress will still be there in 5 years.

codelikeawolf · a year ago
My brain has been so fried from working in frontend for several years that I actually googled SkibidiJS before I realized it was a joke.
spyder · a year ago
Or more like: to AIJS, which automatically rewrites your site to the latest trendy framework. :-)
user432678 · a year ago
This new stuff is bussing, no cap! Astro is so last year, cringe.
bhouston · a year ago
I think that Next.js in its current form is not great for DX.

I've recently tried out both React-Router v7 (which is sort Remix 3? it is confusing), and TanStack/Start and found them both to have better developer DX than Next.JS.

React-Router v7 was the simpler of the two and my app had less code as a result, but a little less flexible than TanStack/Start. But both seemed acceptable.

Astro has been recommended so I will try it out next.

0xblinq · a year ago
We moved to Inertia.js. All our problems with meta frameworks are gone.

We use it at work with a Rails backend, and we are about to start a new project with an Adonis.js backend.

Give it a try. It’s the best way to use React, by far.

nicce · a year ago
Remix is getting renamed and merged into React Router.
0xblinq · a year ago
This is such a mess.

These guys love to create chaos. We used to “joke” with the fact they change the way to do routing in each RR release, now they change the entire framework with each release.

bhouston · a year ago
I am confused because I was mostly able to replicate Remix 2 functionality in React-Router v7. What would Remix add to that?
zoul · a year ago
The complexity fatigue is something that I can certainly relate to. Things like caching, request deduplication and incremental static regeneration across multiple pages can easily lead to site that’s harder to reason about than I would like.

Dead Comment

bastardoperator · a year ago
This is how I see it. You need to be a nextjs expert to produce a nextjs website. Astro you just need to understand basic concepts and can produce a website. I tried nextjs, and the complexity for a SPA was off the charts. Switched to Astro and never looked back.
ericmcer · a year ago
NextJS isn't ideal if you just want a SPA, just stick any frontend router in if you want that.

If you aren't using it for SSR/SSG then you probably don't need it. If you are writing a really dynamic app with a few thousand users you probably don't need it. It is crazy good for blending dynamic/static pages together, preloading data for page responsiveness and making dependency management less of a nightmare. Things like e-commerce are where it really shines because it can blend thousands of cached SSG product pages with dynamic elements and data in a relatively straightforward way.

I would not recommend it for any project where you are going to have fairly few static pages and relatively few users, it isn't worth the complexity.

ervine · a year ago
You can't even become a next.js expert because it is constantly changing.

Even the devs involved don't have their heads around what they've built, considering responses in github issues.

bastardoperator · a year ago
I completely agree with this sentiment. I will say this, vercel was easy to use and v0 is pretty cool too. I can appreciate what they're doing, I just don't have time to become a nextjs expert.
jokethrowaway · a year ago
Both vercel and next keep breaking APIs. I just blank out stopped touching anything coming from there. I still have a client on next + vercel/ai and it's a constant shitshow of broken updates.

It's not an environment you can be productive with.

I moved to solid from now on: they don't have as much money but applications built years ago still work today

evtothedev · a year ago
I love that they're using Kamal[1] outside of a Rails context. I've seen that promised in the docs, but hadn't encountered it in real life.

[1] http://kamal-deploy.org

mat_jack1 · a year ago
From Datocms here :) We are also actively experimenting on porting our main app. We are doing progress, so far so good!
satvikpendem · a year ago
I wonder how Kamal compares to Dokploy or Coolify, both have GUIs as well in those times I don't want to mess with the command line just to fix something in production.