Comment

Comment by tobyhinloopen

I've contributed to all kinds of frontend setups; Elixir LiveView, React, Vue, Angular, HTMX and many more.

I've yet to find a frontend scripting solution that works well. My current stance is to have the frontend as thin as possible, no matter how it is written. Have your domain logic on the server output Plain-Old Data structures (JSON or similar) and render them with stateless, dumb views, be it a template, Vue, React or whatever.

A clear boundary between the domain logic and view is important. Rails templates that can basically access anything is a terrible idea.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton