Hacker News new | ask | show | jobs
by wg0 623 days ago
When even governments knows the web better than the tech industry by and large itself.

I despise React, ended up with Svelte+Typescript and now I realise that could do it all mostly with HTMX + templating with bit of alpine.js if at all.

2 comments

I suspect when you specify “100% availability to the public” then even the most React-ionary devs will soon realize they will have to go down this alley since they have to handle browsers with javascript turned off.
Despise React's unnecessary complexity and non-standard-compliant non-separation-of-concerns squeeze-it-all-in-js approach as well.

Svelte(kit) is still the most W3C compliant of the major frameworks out there. Also, it's not even a runtime-framework but a compiler, meaning you're left with nothing but the necessary HTML, JS & CSS just relevant for your page.

React in the hook's era has gotten overly complex. The cods is unreadable and hard to reason about. Check any longer/complicated component as an example riddled with hooks.

Comparatively, Svelte has a much simpler mental model and at the end, leaves nothing but basic plain old javascript.

But I tend to question these days that do we need this much Javascript?

Mostly for reactive rendering in response to incoming small data packets (or user supplied changes) mutating state.

I have not seen an example of how to do that using vanilla HTML and CSS without some JavaScript support. Maybe it exists and I haven't come across it.

>Svelte(kit) is still the most W3C compliant of the major frameworks out there. Also, it's not even a runtime-framework but a compiler, meaning you're left with nothing but the necessary HTML, JS & CSS just relevant for your page.

I'd argue that it's way easier to master the internals of a library than a whole bespoke compiler.

Lit is also totally web standards compliant to be fair.