| > Recently we went through an exercise where we built a to-do simple app using react and rewrote it using HTMX. React is boilerplate madness. Do the same in Svelte. I did a form heavy app in Svelte, literally took 1/5th the time it would have taken in React. SPA fundamentally means that instead of refreshing the page, just the data needed to update what is on screen is sent down to the user. Ideally, "send data about products on next page of search results" is less than "send all HTML needed to render the next page of search results." Also the backend ends up simpler, instead of trying to template strings together, the code can just worry about fetching and returning needed data. I am legit confused why people think generating HTML in some other language (Python, Ruby, etc) is a good idea. Keep HTML in the browser (easier to develop and debug!) and keep backend business logic someplace else. |
Svelte really sounds compelling from what you're telling me. I'll check it out. But unless it is a drastic simplification it brings with it the fundamentals of effectively writing a thick client in JavaScript or TypeScript and all the things that come with it. React and angular have left a very bad taste in my mouth. The time and code cost for building basic user interfaces should go down not up. We should be spending less time talking about how to do something and more time talking about what to do