logoalt Hacker News

bartwaardenburgtoday at 10:06 AM2 repliesview on HN

The fields/flags state model is a nice idea, having structured values separate from boolean state is something I haven't seen in other frameworks. How does this compare to Alpine.js or htmx in practice? They're in a similar space (no build, SSR-first) but I'm curious what made you go with a new framework rather than building on top of those?


Replies

dleeftinktoday at 10:17 AM

Think Xstate[0] machines are a little more intuitive than the conditional value structuring displayed here in the example, but it is an interesting idea indeed.

[0]: https://github.com/statelyai/xstate?tab=readme-ov-file#super...

aledevvtoday at 10:14 AM

I agree, I hate unnecessary hypercomplexity.

Most of the time, it's enough to build in a simple, clean, and lightweight way. Just like in the old days. Your server's resources will also thank you. Furthermore, the simplicity of web pages is also rewarded by search engines.

If it were up to me, I'd build sites exclusively in .md format :)

show 1 reply